QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>

Classes

struct  Entry

Public Member Functions

 QgsDatumTransformStore (const QgsCoordinateReferenceSystem &destCrs)
void clear ()
void setDestinationCrs (const QgsCoordinateReferenceSystem &destCrs)
void addEntry (const QString &layerId, const QString &srcAuthId, const QString &destAuthId, int srcDatumTransform, int destDatumTransform)
bool hasEntryForLayer (QgsMapLayer *layer) const
const QgsCoordinateTransformtransformation (QgsMapLayer *layer) const
 will return transform from layer's CRS to current destination CRS.
void readXML (const QDomNode &parentNode)
void writeXML (QDomNode &parentNode, QDomDocument &theDoc) const

Protected Attributes

QgsCoordinateReferenceSystem mDestCRS
QHash< QString, EntrymEntries
 key = layer ID

Detailed Description

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

Note
added in 2.4

Constructor & Destructor Documentation

QgsDatumTransformStore::QgsDatumTransformStore ( const QgsCoordinateReferenceSystem destCrs)
explicit

Member Function Documentation

void QgsDatumTransformStore::addEntry ( const QString &  layerId,
const QString &  srcAuthId,
const QString &  destAuthId,
int  srcDatumTransform,
int  destDatumTransform 
)
void QgsDatumTransformStore::clear ( )
bool QgsDatumTransformStore::hasEntryForLayer ( QgsMapLayer layer) const
void QgsDatumTransformStore::readXML ( const QDomNode &  parentNode)
void QgsDatumTransformStore::setDestinationCrs ( const QgsCoordinateReferenceSystem destCrs)
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

void QgsDatumTransformStore::writeXML ( QDomNode &  parentNode,
QDomDocument &  theDoc 
) const

Member Data Documentation

QgsCoordinateReferenceSystem QgsDatumTransformStore::mDestCRS
protected
QHash< QString, Entry > QgsDatumTransformStore::mEntries
protected

key = layer ID


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