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

CI Failure: STAC catalog versions now 1.1 instead of 1.0 #49

Open
scottyhq opened this issue Feb 2, 2025 · 0 comments
Open

CI Failure: STAC catalog versions now 1.1 instead of 1.0 #49

scottyhq opened this issue Feb 2, 2025 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@scottyhq
Copy link
Member

scottyhq commented Feb 2, 2025

Tests are failing because we expect STAC version 1.0.0 but are getting 1.1.0

FAILED tests/test_search.py::test_icesat2_search - AssertionError: assert '1.1.0' == '1.0.0'

Interestingly, the APIs are still returning v1.0.0 but it's pystac behind the scenes that does automatic version promotion:
https://pystac.readthedocs.io/en/stable/concepts.html#stac-spec-version-support

import pystac
item_url = 'https://planetarycomputer.microsoft.com/api/stac/v1/collections/cop-dem-glo-30/items/Copernicus_DSM_COG_10_N39_00_W109_00_DEM'
item = pystac.read_file(item_url)
item.to_dict()
# "proj:epsg": 4326 -> 'proj:code': 'EPSG:4326'
# "stac_version": "1.0.0" -> "stac_version": "1.1.0"

(the latest release of pystac last week sets 1.1 as the default)
https://github.com/stac-utils/pystac/releases/tag/v1.12.0

The changes between 1.0 and 1.1 are detailed here
https://github.com/radiantearth/stac-spec/releases/tag/v1.1.0

@scottyhq scottyhq added the dependencies Pull requests that update a dependency file label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant