odc.stac.bench.dump_site

odc.stac.bench.dump_site(site, overwrite=False)[source]

Prepare input for benchmarking.

Queries API end-point according to site configuration and dumps result into a geojson file. Site configuration must include file_id:str, api:str, search:Dict[str,Any].

{
  "file_id": "ms-s2-long-mosaic_2020-06-06--P1D",
  "api": "https://planetarycomputer.microsoft.com/api/stac/v1",
  "search": {
    "collections": ["sentinel-2-l2a"],
    "datetime": "2020-06-06",
    "bbox": [ 27.345815, -14.98724, 27.565542, -7.710992],
    "query": {}
  }
}
Parameters:
  • site (Dict[str, Any]) – Definition of the test query

  • overwrite (bool) – overwrite existing file

Return type:

Dict[str, Any]

Returns:

Returns GeoJSON FeatureCollection with extra metadata about the query