mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
35 lines
1.0 KiB
Plaintext
35 lines
1.0 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 an instance from QgsCoordinateTransformCache
|
|
*/
|
|
const QgsCoordinateTransform* transformation( QgsMapLayer* layer ) const;
|
|
|
|
void readXML( const QDomNode& parentNode );
|
|
|
|
void writeXML( QDomNode& parentNode, QDomDocument& theDoc ) const;
|
|
|
|
};
|