QGIS API Documentation  2.99.0-Master (19b062c)
Classes | Public Member Functions | Protected Attributes | List of all members
QgsDatumTransformStore Class Reference

The QgsDatumTransformStore class keeps track of datum transformations as chosen by the user. More...

#include <qgsdatumtransformstore.h>


struct  Entry

Public Member Functions

 QgsDatumTransformStore (const QgsCoordinateReferenceSystem &destCrs)
void addEntry (const QString &layerId, const QString &srcAuthId, const QString &destAuthId, int srcDatumTransform, int destDatumTransform)
void clear ()
bool hasEntryForLayer (QgsMapLayer *layer) const
void readXml (const QDomNode &parentNode)
void setDestinationCrs (const QgsCoordinateReferenceSystem &destCrs)
QgsCoordinateTransform transformation (const QgsMapLayer *layer, QString srcAuthId=QString(), QString dstAuthId=QString()) const
 Will return transform from layer's CRS to current destination CRS. More...
void writeXml (QDomNode &parentNode, QDomDocument &doc) const

Protected Attributes

QgsCoordinateReferenceSystem mDestCRS
QHash< QString, EntrymEntries
 key = layer ID More...

Detailed Description

The QgsDatumTransformStore class keeps track of datum transformations as chosen by the user.

QGIS 2.4

Definition at line 34 of file qgsdatumtransformstore.h.

Constructor & Destructor Documentation

◆ QgsDatumTransformStore()

QgsDatumTransformStore::QgsDatumTransformStore ( const QgsCoordinateReferenceSystem destCrs)

Definition at line 22 of file qgsdatumtransformstore.cpp.

Member Function Documentation

◆ addEntry()

void QgsDatumTransformStore::addEntry ( const QString &  layerId,
const QString &  srcAuthId,
const QString &  destAuthId,
int  srcDatumTransform,
int  destDatumTransform 

Definition at line 38 of file qgsdatumtransformstore.cpp.

◆ clear()

void QgsDatumTransformStore::clear ( )

Definition at line 27 of file qgsdatumtransformstore.cpp.

◆ hasEntryForLayer()

bool QgsDatumTransformStore::hasEntryForLayer ( QgsMapLayer layer) const

Definition at line 48 of file qgsdatumtransformstore.cpp.

◆ readXml()

void QgsDatumTransformStore::readXml ( const QDomNode &  parentNode)

Definition at line 79 of file qgsdatumtransformstore.cpp.

◆ setDestinationCrs()

void QgsDatumTransformStore::setDestinationCrs ( const QgsCoordinateReferenceSystem destCrs)

Definition at line 32 of file qgsdatumtransformstore.cpp.

◆ transformation()

QgsCoordinateTransform QgsDatumTransformStore::transformation ( const QgsMapLayer layer,
QString  srcAuthId = QString(),
QString  dstAuthId = QString() 
) const

Will return transform from layer's CRS to current destination CRS.

transformation associated with layer, or an invalid QgsCoordinateTransform if no transform is associated with the layer
layerthe associated layer
srcAuthIdsource CRS (defaults to layer crs)
dstAuthIddestination CRS (defaults to store's crs)

Definition at line 53 of file qgsdatumtransformstore.cpp.

◆ writeXml()

void QgsDatumTransformStore::writeXml ( QDomNode &  parentNode,
QDomDocument &  doc 
) const

Definition at line 107 of file qgsdatumtransformstore.cpp.

Member Data Documentation

◆ mDestCRS

QgsCoordinateReferenceSystem QgsDatumTransformStore::mDestCRS

Definition at line 70 of file qgsdatumtransformstore.h.

◆ mEntries

QHash< QString, Entry > QgsDatumTransformStore::mEntries

key = layer ID

Definition at line 73 of file qgsdatumtransformstore.h.

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