QGIS API Documentation
2.8.2-Wien
|
Cache coordinate transform by authid of source/dest transformation to avoid the overhead of initialisation for each redraw. More...
#include <qgscrscache.h>
Public Member Functions | |
~QgsCoordinateTransformCache () | |
void | invalidateCrs (const QString &crsAuthId) |
Removes transformations where a changed crs is involved from the cache. | |
const QgsCoordinateTransform * | transform (const QString &srcAuthId, const QString &destAuthId, int srcDatumTransform=-1, int destDatumTransform=-1) |
Returns coordinate transformation. |
Additional Inherited Members | |
Static Public Member Functions inherited from QgsSingleton< QgsCoordinateTransformCache > | |
static void | cleanup () |
static QgsCoordinateTransformCache * | instance () |
Protected Member Functions inherited from QgsSingleton< QgsCoordinateTransformCache > | |
QgsSingleton () | |
virtual | ~QgsSingleton () |
Cache coordinate transform by authid of source/dest transformation to avoid the overhead of initialisation for each redraw.
Definition at line 29 of file qgscrscache.h.
QgsCoordinateTransformCache::~QgsCoordinateTransformCache | ( | ) |
Definition at line 21 of file qgscrscache.cpp.
void QgsCoordinateTransformCache::invalidateCrs | ( | const QString & | crsAuthId | ) |
Removes transformations where a changed crs is involved from the cache.
Definition at line 59 of file qgscrscache.cpp.
const QgsCoordinateTransform * QgsCoordinateTransformCache::transform | ( | const QString & | srcAuthId, |
const QString & | destAuthId, | ||
int | srcDatumTransform = -1 , |
||
int | destDatumTransform = -1 |
||
) |
Returns coordinate transformation.
Cache keeps ownership
srcAuthId | auth id string of source crs |
destAuthId | auth id string of dest crs |
srcDatumTransform | id of source's datum transform |
destDatumTransform | id of destinations's datum transform |
Definition at line 32 of file qgscrscache.cpp.