Skip to content

pin schema version instead of pystac version #383

@emmaai

Description

@emmaai

Currently eodatasets pin pystac<1.2 to ensure the compatibility of schema, while pystac supports a list of schema versions. Wondering if the behaviour can be changed from "getting latest version of schema supported by pystac" to "getting certain version of schema supported by the latest pystac"? to be specific:
current behaviour (to mimic)

from pystac.extensions.projection import ProjectionExtension
schema_uri = ProjectionExtension.get_schema_uri()
print(schema_uri)

output
https://stac-extensions.github.io/projection/v1.1.0/schema.json

changed behaviour (to mimic)

schema_uris = ProjectionExtension.get_schema_uris()
for uri in schema_uris:
    print(uri)

output

https://stac-extensions.github.io/projection/v1.0.0/schema.json
https://stac-extensions.github.io/projection/v1.1.0/schema.json

Then eodatasets can choose which specific version of schema to support. I'm not sure if there are other considerations involved with pystac<1.2 in addition to schema versions. Though I'd like to access other data with different stac schema versions with eodatasets playing along.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions