-
Notifications
You must be signed in to change notification settings - Fork 19
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
STAC Search with "ids" and "fields" not working as specified in the STAC spec #707
Comments
👋🏻 the You're right about the item search though, and I'm getting a PR up to fix that now. |
Hi James! Thanks for the quick reply :) The For the
Which will mean for example that specifying
{
"collections": ["collection_b"],
"ids": ["id_1"]
} then Thanks for addressing this one! important to us when there is some client side grouping which does not fit the stac model |
I didn't notice this before. The next big spec push is around the API spec, sometime in the next few months, so there's time to refine how that works if the currently described behavior isn't great. I'd prefer to apply whatever filters a client provides (Franklin's current behavior) instead of requiring consumers to understand the spec well enough to know that some filters won't be applied under certain conditions. What do you think? |
Closed as fixed, but we can continue talking about the filter behavior here -- I'll open another issue for implementing the fields extension |
I fully agree, I thought this was quite a weird specification tbh, counter-intuitive at least. Originally I thought:
--> so composing the two criteria would have meant: results have to be in one of those collections and in this list of ids". if users of the API wanted not to care about a certain criteria (e.g. |
Ok I think we're on the same page here -- I'll open an issue in the STAC API specification repo to clarify and ideally revert that choice |
awesome! thanks James :) |
btw we deployed the latest docker tag published and the query with |
@jisantuc just as one example for fields -- when i indexed MODIS and had a well-decimated polygon in the proj:geometry field, it accounted for like 90% of the entire Item json, so excluding it by default (but allowing a user to get it if they really wanted) was useful |
Describe the bug
I am trying to use the advanced
POST /search
from the STAC API documentation hereSome queries are not behaving as specified:
ids
query field: seems not taken into account at allfields
to specify which fields to include/exclude in each feature responseExpected behavior
Example advanced search:
geometry
includedAdditional context
The text was updated successfully, but these errors were encountered: