Skip to content

Class CoordinateReferenceSystemUtils

ClassList > CoordinateReferenceSystemUtils

Inherits the following classes: QObject

Public Functions

Type Name
CoordinateReferenceSystemUtils (QObject * parent=nullptr)

Public Static Functions

Type Name
Q_INVOKABLE bool defaultCoordinateOrderForCrsIsXY (const QgsCoordinateReferenceSystem & crs)
Returns whether the default coordinate order of a given crs is XY.
Q_INVOKABLE QgsCoordinateTransformContext emptyTransformContext ()
Q_INVOKABLE QgsCoordinateReferenceSystem fromDescription (const QString & definition)
Returns an CRS matching the provided definition .
Q_INVOKABLE QgsCoordinateReferenceSystem invalidCrs ()
Q_INVOKABLE QgsCoordinateReferenceSystem wgs84Crs ()
Returns an EPGS:4326 WGS84 CRS.

Public Functions Documentation

function CoordinateReferenceSystemUtils

explicit CoordinateReferenceSystemUtils::CoordinateReferenceSystemUtils (
    QObject * parent=nullptr
) 

Public Static Functions Documentation

function defaultCoordinateOrderForCrsIsXY

Returns whether the default coordinate order of a given crs is XY.

static Q_INVOKABLE bool CoordinateReferenceSystemUtils::defaultCoordinateOrderForCrsIsXY (
    const QgsCoordinateReferenceSystem & crs
) 

function emptyTransformContext

static inline Q_INVOKABLE QgsCoordinateTransformContext CoordinateReferenceSystemUtils::emptyTransformContext () 

Returns an empty transform context

Note:

This can be used in QML to avoid errors when a parent object pointer goes undefined


function fromDescription

Returns an CRS matching the provided definition .

static inline Q_INVOKABLE QgsCoordinateReferenceSystem CoordinateReferenceSystemUtils::fromDescription (
    const QString & definition
) 

function invalidCrs

static inline Q_INVOKABLE QgsCoordinateReferenceSystem CoordinateReferenceSystemUtils::invalidCrs () 

Returns an invalid CRS

Note:

This can be used in QML to avoid errors when a parent object pointer goes undefined


function wgs84Crs

Returns an EPGS:4326 WGS84 CRS.

static inline Q_INVOKABLE QgsCoordinateReferenceSystem CoordinateReferenceSystemUtils::wgs84Crs () 


The documentation for this class was generated from the following file src/core/utils/coordinatereferencesystemutils.h