weaver.ogc_definitions

Utilities for handling OGC API and OWS conformance classes and definitions.

Module Contents

weaver.ogc_definitions.curie(uri: str) str[source]

Convert a URI to its CURIE format.

weaver.ogc_definitions.normalize(uri: str, version: str | None = None, secure: bool = False) str[source]

Normalize URI from various formats, such as CURIE, URN or HTTP(S).

Version 0 is considered an alias for any version in the OGC definitions. However, link relations and profiles use 1.0 instead. For OGC API conformance classes, they depend on the actual release as applicable. The default is applied accordingly if None.

See also

See opengeospatial/NamingAuthority#120 for more details.

weaver.ogc_definitions.OGC_DEF_CRS_UNDEFINED_URN = 'urn:ogc:def:crs:::-1'[source]
weaver.ogc_definitions.OGC_DEF_CRS_WSG84_SHORT = 'WGS84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_CRS84_LEGACY_SHORT = 'CRS:84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_CRS84_LEGACY_URN = 'urn:ogc:def:crs:CRS::84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_CRS84_LEGACY_URI = 'http://www.opengis.net/def/crs/CRS/0/84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_CRS84_URN = 'urn:ogc:def:crs:OGC:2:84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_CRS84_URI = 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_CRS84H_URI = 'http://www.opengis.net/def/crs/OGC/0/CRS84h'[source]
weaver.ogc_definitions.OGC_DEF_CRS_OGC_CRS84_SHORT = 'OGC:CRS84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_OGC_CRS84_URN = 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'[source]
weaver.ogc_definitions.OGC_DEF_CRS_EPSG4326_URN = 'urn:ogc:def:crs:EPSG::4326'[source]
weaver.ogc_definitions.OGC_DEF_CRS_EPSG4326_SHORT = 'EPSG:4326'[source]
weaver.ogc_definitions.OGC_DEF_CRS_EPSG4326_URI = 'http://www.opengis.net/def/crs/EPSG/0/4326'[source]
weaver.ogc_definitions.OGC_DEF_CRS_ANY_EPSG4326[source]