Skip to main content

fetch.resolve_aoi_geometry

fetch.resolve_aoi_geometry(spec)

Return the AOI’s true polygon(s) in WGS84, or None.

Only {"shapefile": ...} AOIs have a shape beyond their bbox; every other spec returns None. The result is a list of GeoJSON-like geometry dicts (one per feature, interior rings kept), ready to pass to :func:geoai_datacubes.preprocessing.clip_to_geometry.