2013-06-23 16:00:16 +02:00
|
|
|
class QgsCoordinateTransformCache
|
|
|
|
{
|
2016-04-21 10:15:15 +02:00
|
|
|
%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();
|
2016-07-16 20:36:45 +10:00
|
|
|
|
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
|
2016-07-16 20:36:45 +10:00
|
|
|
@returns matching transform, or an invalid transform if none could be created
|
2014-01-26 18:35:21 +01:00
|
|
|
*/
|
2016-07-16 20:36:45 +10: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 );
|
2016-01-22 18:45:45 +11:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
QgsCoordinateTransformCache( const QgsCoordinateTransformCache& rh );
|
2013-06-23 16:00:16 +02:00
|
|
|
};
|
|
|
|
|