weaver.ogc_definitions ====================== .. py:module:: weaver.ogc_definitions .. autoapi-nested-parse:: Utilities for handling :term:`OGC API` and :term:`OWS` conformance classes and definitions. Module Contents --------------- .. py:function:: curie(uri: str) -> str Convert a :term:`URI` to its :term:`CURIE` format. .. py:function:: normalize(uri: str, version: Optional[str] = None, secure: bool = False) -> str Normalize :term:`URI` from various formats, such as :term:`CURIE`, :term:`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 :term:`OGC API` conformance classes, they depend on the actual release as applicable. The default is applied accordingly if ``None``. .. seealso:: See `opengeospatial/NamingAuthority#120 `_ for more details. .. py:data:: OGC_DEF_CRS_UNDEFINED_URN :value: 'urn:ogc:def:crs:::-1' .. py:data:: OGC_DEF_CRS_WSG84_SHORT :value: 'WGS84' .. py:data:: OGC_DEF_CRS_CRS84_URN_LEGACY :value: 'urn:ogc:def:crs:CRS::84' .. py:data:: OGC_DEF_CRS_CRS84_URN :value: 'urn:ogc:def:crs:OGC:2:84' .. py:data:: OGC_DEF_CRS_CRS84_URI :value: 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' .. py:data:: OGC_DEF_CRS_CRS84H_URI :value: 'http://www.opengis.net/def/crs/OGC/0/CRS84h' .. py:data:: OGC_DEF_CRS_EPSG4326_URN :value: 'urn:ogc:def:crs:EPSG::4326' .. py:data:: OGC_DEF_CRS_EPSG4326_SHORT :value: 'EPSG:4326' .. py:data:: OGC_DEF_CRS_EPSG4326_URI :value: 'http://www.opengis.net/def/crs/EPSG/0/4326' .. py:data:: OGC_DEF_CRS_ANY_EPSG4326