QGIS API Documentation 3.41.0-Master (cea29feecf2)
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 598 of file qgsogcutils.h.

Member Enumeration Documentation

◆ CRSFlavor

enum class QgsOgcCrsUtils::CRSFlavor
strong

CRS flavor.

Enumerator
UNKNOWN 

Unknown/unhandled flavor.

AUTH_CODE 

E.g EPSG:4326.

HTTP_EPSG_DOT_XML 

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

OGC_URN 

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

X_OGC_URN 

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

OGC_HTTP_URI 

E.g. http://www.opengis.net/def/crs/EPSG/0/4326.

Definition at line 603 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 3778 of file qgsogcutils.cpp.


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