QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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. More...
 
static Qgis::CoordinateOrder defaultCoordinateOrderForCrs (const QgsCoordinateReferenceSystem &crs)
 Returns the default coordinate order to use for the specified crs. More...
 

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 82 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.


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