Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query STAC extension support #14

Closed
mukhery opened this issue May 21, 2021 · 2 comments
Closed

query STAC extension support #14

mukhery opened this issue May 21, 2021 · 2 comments

Comments

@mukhery
Copy link

mukhery commented May 21, 2021

Hi,

Would it be possible to add query support to your STAC endpoints?

As your team noted here, the pystac-client is a little slow when instantiating many items. The query extension would enable some pre-filtering (e.g., based on cloud cover) to help reduce the instantiation of unnecessary items.

For example, a search with the query command below:

api = pystac_client.Client.open(
    "https://planetarycomputer-staging.microsoft.com/api/stac/v1/"
)
s2_search = api.search(
    datetime="2017-09-01/2017-09-05",
    limit=500,
    collections=["sentinel-2-l2a"],
    query=['eo:cloud_cover<5']
)

Currently fails with the following error:

APIError: The 'query' STAC API extension is not yet implemented. You may perform queries against collection IDs, geometry (intersects or bbox), and datetime only. Stay tuned!
@TomAugspurger
Copy link

Yes, we plan to support querying on extension attributes. Anything else to do here, or can this be closed?

@mukhery
Copy link
Author

mukhery commented May 24, 2021

Thanks!

@mukhery mukhery closed this as completed May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants