-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
api layerenhancementNew feature or requestNew feature or requestpgstacspecCompliance with STAC/OGC specificationsCompliance with STAC/OGC specificationssqlalchemy
Description
The collection-level filter in stac-browser makes a request that looks like:
/collections{collection_id}/items?bbox=1,2,3,4
But the bbox query param is ignore in that route in stac-fastapi.pgstac. Eg this request to the MS PC API, which returns an Item nowhere near the requested bbox.
The route called doesn't do anything with the bbox:
stac-fastapi/stac_fastapi/pgstac/stac_fastapi/pgstac/core.py
Lines 270 to 273 in fbdd993
| req = self.post_request_model( | |
| collections=[collection_id], limit=limit, token=token | |
| ) | |
| item_collection = await self._search_base(req, **kwargs) |
As far as I can tell this is not an issue on stac-browser's side. Would appreciate some help understanding how this is supposed to work, because it seems like there's more going on that just adding bbox to the queries passed to _search_base? If not I'm happy to work on a PR to do that...
Metadata
Metadata
Assignees
Labels
api layerenhancementNew feature or requestNew feature or requestpgstacspecCompliance with STAC/OGC specificationsCompliance with STAC/OGC specificationssqlalchemy