2017-04-24 11:51:09 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgscrscache.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-23 16:00:16 +02:00
|
|
|
class QgsCoordinateTransformCache
|
|
|
|
{
|
2017-04-24 11:51:09 +02:00
|
|
|
%Docstring
|
|
|
|
Cache coordinate transform by authid of source/dest transformation to avoid the
|
|
|
|
overhead of initialization for each redraw*
|
|
|
|
%End
|
|
|
|
|
2016-04-21 10:15:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-04-24 11:51:09 +02:00
|
|
|
#include "qgscrscache.h"
|
2016-04-21 10:15:15 +02:00
|
|
|
%End
|
2013-06-23 16:00:16 +02:00
|
|
|
public:
|
2017-04-24 11:51:09 +02:00
|
|
|
static QgsCoordinateTransformCache *instance();
|
|
|
|
%Docstring
|
|
|
|
:rtype: QgsCoordinateTransformCache
|
|
|
|
%End
|
2016-07-16 20:36:45 +10:00
|
|
|
|
2017-04-26 11:31:56 +02:00
|
|
|
|
2017-04-24 11:51:09 +02:00
|
|
|
QgsCoordinateTransform transform( const QString &srcAuthId, const QString &destAuthId, int srcDatumTransform = -1, int destDatumTransform = -1 );
|
|
|
|
%Docstring
|
|
|
|
Returns coordinate transformation. Cache keeps ownership
|
|
|
|
\param srcAuthId auth id string of source crs
|
|
|
|
\param destAuthId auth id string of dest crs
|
|
|
|
\param srcDatumTransform id of source's datum transform
|
|
|
|
\param destDatumTransform id of destinations's datum transform
|
|
|
|
:return: matching transform, or an invalid transform if none could be created
|
|
|
|
:rtype: QgsCoordinateTransform
|
|
|
|
%End
|
2016-07-16 20:36:45 +10:00
|
|
|
|
2017-04-24 11:51:09 +02:00
|
|
|
void invalidateCrs( const QString &crsAuthId );
|
|
|
|
%Docstring
|
|
|
|
Removes transformations where a changed crs is involved from the cache
|
|
|
|
%End
|
2016-01-22 18:45:45 +11:00
|
|
|
|
|
|
|
private:
|
2017-04-24 11:51:09 +02:00
|
|
|
QgsCoordinateTransformCache( const QgsCoordinateTransformCache &rh );
|
2013-06-23 16:00:16 +02:00
|
|
|
};
|
|
|
|
|
2017-04-24 11:51:09 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgscrscache.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|