mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
- 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"
37 lines
1.1 KiB
Plaintext
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;
|
|
|
|
};
|