Skip to content

Collection bbox filtering from stac-browser #476

@carderne

Description

@carderne

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:

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions