odc.geo.gridspec.GridSpec.tiles

GridSpec.tiles(bounds, geobox_cache=None)[source]

Query tiles overlapping with bounding box.

Output is a sequence of tile_index, odc.geo.geobox.GeoBox tuples.

Note

Grid cells are referenced by coordinates (x, y), which is the opposite to the usual CRS dimension order.

Parameters:
  • bounds (BoundingBox) – Boundary coordinates of the required grid

  • geobox_cache (Optional[dict]) – Optional cache to re-use geoboxes instead of creating new one each time

Return type:

Iterator[Tuple[Tuple[int, int], GeoBox]]

Returns:

Iterator of tuples of grid index and corresponding odc.geo.geobox.GeoBox