QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
QgsOgcCrsUtils Class Reference

Utilities related to OGC CRS encodings. More...

#include <qgsogcutils.h>

Public Types

enum class  CRSFlavor {
  UNKNOWN , AUTH_CODE , HTTP_EPSG_DOT_XML , OGC_URN ,
  X_OGC_URN , OGC_HTTP_URI
}
 CRS flavor. More...
 

Static Public Member Functions

static CRSFlavor parseCrsName (const QString &crsName, QString &authority, QString &code)
 Parse a CRS name in one of the flavors of OGC services, and decompose it as authority and code.
 

Detailed Description

Utilities related to OGC CRS encodings.

Note
not available in Python bindings
Since
QGIS 3.28

Definition at line 599 of file qgsogcutils.h.

Member Enumeration Documentation

◆ CRSFlavor

enum class QgsOgcCrsUtils::CRSFlavor
strong

CRS flavor.

Enumerator
UNKNOWN 
AUTH_CODE 

unknown/unhandled flavor

HTTP_EPSG_DOT_XML 

e.g EPSG:4326

OGC_URN 

e.g. http://www.opengis.net/gml/srs/epsg.xml#4326 (called "OGC HTTP URL" in GeoServer WFS configuration panel)

X_OGC_URN 

e.g. urn:ogc:def:crs:EPSG::4326

OGC_HTTP_URI 

e.g. urn:x-ogc:def:crs:EPSG::4326

Definition at line 604 of file qgsogcutils.h.

Member Function Documentation

◆ parseCrsName()

QgsOgcCrsUtils::CRSFlavor QgsOgcCrsUtils::parseCrsName ( const QString &  crsName,
QString &  authority,
QString &  code 
)
static

Parse a CRS name in one of the flavors of OGC services, and decompose it as authority and code.

Parameters
crsNameCRS name, like "EPSG:4326", "http://www.opengis.net/gml/srs/epsg.xml#4326", "urn:ogc:def:crs:EPSG::4326", etc.
[out]authorityCRS authority.
[out]codeCRS code.
Returns
CRS flavor (UNKNOWN if crsName could not been parsed.

Definition at line 3777 of file qgsogcutils.cpp.


The documentation for this class was generated from the following files: