QGIS/python/core/qgsdatumtransformstore.sip
Nyall Dawson 4cfacf14e3 Make API more consistent
- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id
- rename methods with SRS to Crs
- rename methods with abbreviations like "dest" to "destination"
- rename methods with abbreviations like "src" to "source"
2016-07-21 08:40:50 +10:00

37 lines
1.1 KiB
Plaintext

/**
* @brief The QgsDatumTransformStore class keeps track of datum transformations
* as chosen by the user.
*
* @note added in 2.4
*/
class QgsDatumTransformStore
{
%TypeHeaderCode
#include <qgsdatumtransformstore.h>
%End
public:
explicit 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;
/** Will return transform from layer's CRS to current destination CRS.
* Will emit datumTransformInfoRequested signal if the layer has no entry.
* @returns transformation associated with layer, or an invalid QgsCoordinateTransform
* if no transform is associated with the layer
*/
QgsCoordinateTransform transformation( QgsMapLayer* layer ) const;
void readXml( const QDomNode& parentNode );
void writeXml( QDomNode& parentNode, QDomDocument& theDoc ) const;
};