grid_indexing.RTree.query_overlap#

RTree.query_overlap(target_cells, shape=None)#

query for overlapping geometries

Parameters:
  • target_cells (arrow-array) – The target geometries as a geoarrow polygon array, 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.

  • shape (tuple of int, optional) – The shape of the input array. This is necessary to pass the shape of a 2D field of geometries, as geoarrow does not support 2D arrays (yet?).

    If omitted / None, a 1D array will be assumed.

Returns:

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