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

pystac_client.Client.open().get_collection() always returns last collection #29

Open
FlorisCalkoen opened this issue Feb 26, 2024 · 0 comments

Comments

@FlorisCalkoen
Copy link
Collaborator

When you connect to the catalog using pystac_client and use get_collection() to retrieve the collection of interest, you always get the last collection. However, when you do catalog.get_child() it works as expected. See below.

import pystac_client

coclico_stac_href = "https://coclico.blob.core.windows.net/stac/v1/catalog.json"
catalog = pystac_client.Client.open(coclico_stac_href)
catalog.get_collection("gcts-2000m")  # returns the last collection...? at time of writing the shorelinemonitor sample

catalog.get_child("gcts-2000m")  # works fine

Not sure if we have a bug while building the STAC, or that our stac is not compatible with pystac_client or that its a bug with pystac_client.

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

1 participant