QGIS API Documentation
2.8.2-Wien
|
The QgsDatumTransformStore class keeps track of datum transformations as chosen by the user. More...
#include <qgsdatumtransformstore.h>
Classes | |
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) |
const QgsCoordinateTransform * | transformation (QgsMapLayer *layer) const |
will return transform from layer's CRS to current destination CRS. | |
void | writeXML (QDomNode &parentNode, QDomDocument &theDoc) const |
Protected Attributes | |
QgsCoordinateReferenceSystem | mDestCRS |
QHash< QString, Entry > | mEntries |
key = layer ID |
The QgsDatumTransformStore class keeps track of datum transformations as chosen by the user.
Definition at line 32 of file qgsdatumtransformstore.h.
|
explicit |
Definition at line 22 of file qgsdatumtransformstore.cpp.
void QgsDatumTransformStore::addEntry | ( | const QString & | layerId, |
const QString & | srcAuthId, | ||
const QString & | destAuthId, | ||
int | srcDatumTransform, | ||
int | destDatumTransform | ||
) |
Definition at line 38 of file qgsdatumtransformstore.cpp.
void QgsDatumTransformStore::clear | ( | ) |
Definition at line 27 of file qgsdatumtransformstore.cpp.
bool QgsDatumTransformStore::hasEntryForLayer | ( | QgsMapLayer * | layer | ) | const |
Definition at line 48 of file qgsdatumtransformstore.cpp.
void QgsDatumTransformStore::readXML | ( | const QDomNode & | parentNode | ) |
Definition at line 77 of file qgsdatumtransformstore.cpp.
void QgsDatumTransformStore::setDestinationCrs | ( | const QgsCoordinateReferenceSystem & | destCrs | ) |
Definition at line 32 of file qgsdatumtransformstore.cpp.
const QgsCoordinateTransform * QgsDatumTransformStore::transformation | ( | QgsMapLayer * | layer | ) | const |
will return transform from layer's CRS to current destination CRS.
Will emit datumTransformInfoRequested signal if the layer has no entry. Returns an instance from QgsCoordinateTransformCache
Definition at line 53 of file qgsdatumtransformstore.cpp.
void QgsDatumTransformStore::writeXML | ( | QDomNode & | parentNode, |
QDomDocument & | theDoc | ||
) | const |
Definition at line 105 of file qgsdatumtransformstore.cpp.
|
protected |
Definition at line 64 of file qgsdatumtransformstore.h.
|
protected |
key = layer ID
Definition at line 67 of file qgsdatumtransformstore.h.