We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Client.get_items
/search
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
The Client.get_items function may get items using the /search endpoint if the server conforms to the ITEM_SEARCH conformance class.
ITEM_SEARCH
If it does so, the search is always recursive (looks for items in sub-catalogs and sub-collections) even if the recursive=False argument is passed.
recursive=False
I would expect that it would make a non-recursive search instead and only return items that are the immediate child of the current catalog.
Note that the spec recommends that items have a collection as a parent (not a catalog) but catalog parents of items are supported:
Additionally, some APIs require that the collections argument be used when using the /search endpoint. This means that this
collections
pystac-client/pystac_client/client.py
Line 460 in 5fae268
will always raise an APIError for these APIs. This is notably the case for the STAC API at https://planetarycomputer.microsoft.com/api/stac/v1/ which is used in the tests for pystac-client.
APIError
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The
Client.get_items
function may get items using the/search
endpoint if the server conforms to theITEM_SEARCH
conformance class.If it does so, the search is always recursive (looks for items in sub-catalogs and sub-collections) even if the
recursive=False
argument is passed.I would expect that it would make a non-recursive search instead and only return items that are the immediate child of the current catalog.
Note that the spec recommends that items have a collection as a parent (not a catalog) but catalog parents of items are supported:
Additionally, some APIs require that the
collections
argument be used when using the/search
endpoint. This means that thispystac-client/pystac_client/client.py
Line 460 in 5fae268
will always raise an
APIError
for these APIs. This is notably the case for the STAC API at https://planetarycomputer.microsoft.com/api/stac/v1/ which is used in the tests for pystac-client.The text was updated successfully, but these errors were encountered: