-
Notifications
You must be signed in to change notification settings - Fork 4
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
Not working with the GEOBON STAC catalogue #17
Comments
Thanks for the reproducer. Line 118 in e163edb
In stac.geobon.org's JSON however, the
See the spec: and example: Does the spec also mentions |
Thanks @Alexander-Barth -- you are right, neither the spec nor the types for link relations in IANA use @jmlord / @glaroc -- it seems that the GEOBON STAC catalogue isn't following the spec |
We are using STAC Fastapi. This might be a difference between STAC spec and STAC API spec ? Other catalogs I'm looking at use items with an "s". https://planetarycomputer.microsoft.com/api/stac/v1/collections/terraclimate |
Yeah, the STAC API spec is different from the STAC spec 😕 |
That would be a real bummer. The STAC spec is already quite extensive as is. Or maybe it is an extension (https://stac-extensions.github.io/) or a beta version of the spec (just a speculation). Maybe the raising an issue at https://github.com/radiantearth/stac-spec/ would help? |
In any case, if catalogs like the Planetary Computer and ESA have items instead of item, this library should probably support it. Otherwise, many users will face similar issues. The rstac R package and the Python pystac library work fine with our catalog. |
Are you able to read the items with pystac? This is what I tried, but I got also an empty list for the items. import pystac
root_catalog = pystac.Catalog.from_file("https://stac.geobon.org/")
root_catalog.get_child("chelsa-clim").title
# output 'CHELSA Climatologies'
list(root_catalog.get_child("chelsa-clim").get_items())
# output []
list(root_catalog.get_child("chelsa-clim").get_items(recursive=True))
# output []
pystac.__version__
# output '1.10.1' I am not very familiar with pystac, I followed the documentation here https://pystac.readthedocs.io/en/stable/quickstart.html#Crawling-Items |
@Alexander-Barth I believe you have to use pystac_client: https://pystac-client.readthedocs.io/en/latest/usage.html Static and dynamic catalogs have different characteristics. For example, sub-catalogs are not allowed with the STAC API Spec, while they are in the STAC Spec. I guess items vs item is another difference. |
This should be fixed in the current main branch:
STAC.jl should now also support the item-search extension. |
AMAZING! Thank you so much!!!! |
Great! I am closing the issue and will soon make a new release. |
The following is empty:
Specifically, the output is
But using the URL gives a list of the expected items withing this collection: https://stac.geobon.org/collections/chelsa-clim/items
Is there something I am missing?
The text was updated successfully, but these errors were encountered: