QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsCoordinateTransformCache Class Reference

Cache coordinate transform by authid of source/dest transformation to avoid the overhead of initialisation for each redraw. More...

#include <qgscrscache.h>

Inheritance diagram for QgsCoordinateTransformCache:
Inheritance graph
[legend]

Public Member Functions

 ~QgsCoordinateTransformCache ()
void invalidateCrs (const QString &crsAuthId)
 Removes transformations where a changed crs is involved from the cache.
const QgsCoordinateTransformtransform (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 ()

Detailed Description

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.

Constructor & Destructor Documentation

QgsCoordinateTransformCache::~QgsCoordinateTransformCache ( )

Definition at line 21 of file qgscrscache.cpp.

Member Function Documentation

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

Parameters
srcAuthIdauth id string of source crs
destAuthIdauth id string of dest crs
srcDatumTransformid of source's datum transform
destDatumTransformid of destinations's datum transform

Definition at line 32 of file qgscrscache.cpp.


The documentation for this class was generated from the following files: