QGIS API Documentation 3.41.0-Master (181b2f43d8e)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsCoordinateReferenceSystemUtils Class Reference

Utility functions for working with QgsCoordinateReferenceSystem objects. More...

#include <qgscoordinatereferencesystemutils.h>

Static Public Member Functions

static QString axisDirectionToAbbreviatedString (Qgis::CrsAxisDirection axis)
 Returns a translated abbreviation representing an axis direction.
 
static QString crsTypeToString (Qgis::CrsType type)
 Returns a translated string representing a CRS type.
 
static Qgis::CoordinateOrder defaultCoordinateOrderForCrs (const QgsCoordinateReferenceSystem &crs)
 Returns the default coordinate order to use for the specified crs.
 
static QString translateProjection (const QString &projection)
 Returns a translated string for a projection method.
 

Detailed Description

Utility functions for working with QgsCoordinateReferenceSystem objects.

Since
QGIS 3.26

Definition at line 32 of file qgscoordinatereferencesystemutils.h.

Member Function Documentation

◆ axisDirectionToAbbreviatedString()

QString QgsCoordinateReferenceSystemUtils::axisDirectionToAbbreviatedString ( Qgis::CrsAxisDirection  axis)
static

Returns a translated abbreviation representing an axis direction.

Definition at line 87 of file qgscoordinatereferencesystemutils.cpp.

◆ crsTypeToString()

QString QgsCoordinateReferenceSystemUtils::crsTypeToString ( Qgis::CrsType  type)
static

Returns a translated string representing a CRS type.

Since
QGIS 3.34

Definition at line 176 of file qgscoordinatereferencesystemutils.cpp.

◆ defaultCoordinateOrderForCrs()

Qgis::CoordinateOrder QgsCoordinateReferenceSystemUtils::defaultCoordinateOrderForCrs ( const QgsCoordinateReferenceSystem crs)
static

Returns the default coordinate order to use for the specified crs.

Warning
This is quite a "coarse" method, in that many possible CRS axis don't map well to a simply X/Y or Y/X order. Accordingly this method will default to returning Qgis::CoordinateOrder::XY unless we are reasonably certain of a Y/X order.

Definition at line 20 of file qgscoordinatereferencesystemutils.cpp.

◆ translateProjection()

QString QgsCoordinateReferenceSystemUtils::translateProjection ( const QString &  projection)
static

Returns a translated string for a projection method.

Returns an empty string for unhandled methods.

Since
QGIS 3.34

Definition at line 210 of file qgscoordinatereferencesystemutils.cpp.


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