grid_indexing.distributed.DistributedRTree.query#

DistributedRTree.query(geoms, *, method)#

query for overlapping geometries

Parameters:
  • target_cells (array-like) – The target geometries as a chunked array of shapely polygons, in EPSG:4326 coordinates. The longitude convention can be either 0° to 360° or -180° to 180°, and it is the user’s responsibility to ensure consistency.

  • method ({"overlaps"}) – The query method. For now, can be only "overlaps", but more are planned (for example, "nearest_neighbour" or "bilinear").

Returns:

overlaps (chunked-sparse-array) – The result of the query as a chunked sparse array (in GCXS format), with the number of dimensions being the combination of source and target arrays.