QGIS/python/core/qgscrscache.sip

28 lines
958 B
Plaintext
Raw Normal View History

2013-06-23 16:00:16 +02:00
class QgsCoordinateTransformCache
{
%TypeHeaderCode
#include <qgscrscache.h>
%End
2013-06-23 16:00:16 +02:00
public:
static QgsCoordinateTransformCache* instance();
2016-02-14 03:50:23 +01:00
2013-06-23 16:00:16 +02:00
~QgsCoordinateTransformCache();
2015-07-29 11:52:14 +02:00
/** Returns coordinate transformation. Cache keeps ownership
2013-06-23 16:00:16 +02:00
@param srcAuthId auth id string of source crs
2014-01-26 18:35:21 +01:00
@param destAuthId auth id string of dest crs
@param srcDatumTransform id of source's datum transform
@param destDatumTransform id of destinations's datum transform
@returns matching transform, or an invalid transform if none could be created
2014-01-26 18:35:21 +01:00
*/
QgsCoordinateTransform transform( const QString& srcAuthId, const QString& destAuthId, int srcDatumTransform = -1, int destDatumTransform = -1 );
2015-07-29 11:52:14 +02:00
/** Removes transformations where a changed crs is involved from the cache*/
2013-06-23 16:00:16 +02:00
void invalidateCrs( const QString& crsAuthId );
private:
QgsCoordinateTransformCache( const QgsCoordinateTransformCache& rh );
2013-06-23 16:00:16 +02:00
};