Skip to content

client.get_collections should check for other conformance classes #185

@philvarner

Description

@philvarner

in client.py, this code predicates behavior:

    def get_collection(self, collection_id: str) -> CollectionClient:
        if self._stac_io.conforms_to(ConformanceClasses.COLLECTIONS):

where

    COLLECTIONS = re.escape(
        "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30"
    )
  1. this is not the Collections conformance class -- it's the OAFeat OpenAPI 3.0 conformance class
  2. It should actually be checking for either
    https://api.stacspec.org/v1.0.*/ogcapi-features or https://api.stacspec.org/v1.0.*/collections

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions