QGIS API Documentation
2.6.0-Brighton
|
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 () | |
const QgsCoordinateTransform * | transform (const QString &srcAuthId, const QString &destAuthId, int srcDatumTransform=-1, int destDatumTransform=-1) |
Returns coordinate transformation. | |
void | invalidateCrs (const QString &crsAuthId) |
Removes transformations where a changed crs is involved from the cache. |
Static Public Member Functions | |
static QgsCoordinateTransformCache * | instance () |
Cache coordinate transform by authid of source/dest transformation to avoid the overhead of initialisation for each redraw.
QgsCoordinateTransformCache::~QgsCoordinateTransformCache | ( | ) |
|
static |
void QgsCoordinateTransformCache::invalidateCrs | ( | const QString & | crsAuthId | ) |
Removes transformations where a changed crs is involved from the cache.
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 |