odc.geo.gridspec.GridSpec.tiles_from_geopolygon

GridSpec.tiles_from_geopolygon(geopolygon, geobox_cache=None)[source]

Query tiles overlapping with a given polygon.

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

Parameters:
  • geopolygon (Geometry) – Polygon to tile

  • geobox_cache (Optional[dict]) – Optional cache to re-use geoboxes instead of creating new one each turn: iterator of grid cells with odc.geo.geobox.GeoBox tiles

Return type:

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