QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
QgsCRSCache Class Reference

#include <qgscrscache.h>

Collaboration diagram for QgsCRSCache:
Collaboration graph
[legend]

Public Member Functions

 ~QgsCRSCache ()
const
QgsCoordinateReferenceSystem
crsByAuthId (const QString &authid)
 Returns the CRS for authid, e.g.
const
QgsCoordinateReferenceSystem
crsByEpsgId (long epsg)
void updateCRSCache (const QString &authid)

Static Public Member Functions

static QgsCRSCacheinstance ()

Protected Member Functions

 QgsCRSCache ()

Private Attributes

QHash< QString,
QgsCoordinateReferenceSystem
mCRS
QgsCoordinateReferenceSystem mInvalidCRS
 CRS that is not initialised (returned in case of error)

Static Private Attributes

static QgsCRSCachemInstance = 0

Detailed Description

Definition at line 45 of file qgscrscache.h.

Constructor & Destructor Documentation

QgsCRSCache::~QgsCRSCache ( )

Definition at line 97 of file qgscrscache.cpp.

References mInstance.

QgsCRSCache::QgsCRSCache ( )
protected

Definition at line 93 of file qgscrscache.cpp.

Referenced by instance().

Member Function Documentation

const QgsCoordinateReferenceSystem & QgsCRSCache::crsByAuthId ( const QString &  authid)

Returns the CRS for authid, e.g.

'EPSG:4326' (or an invalid CRS in case of error)

Definition at line 117 of file qgscrscache.cpp.

References QgsCoordinateReferenceSystem::createFromOgcWmsCrs(), mCRS, and mInvalidCRS.

Referenced by crsByEpsgId(), QgsCoordinateTransform::initialise(), and QgsCoordinateReferenceSystem::validate().

const QgsCoordinateReferenceSystem & QgsCRSCache::crsByEpsgId ( long  epsg)

Definition at line 135 of file qgscrscache.cpp.

References crsByAuthId().

QgsCRSCache * QgsCRSCache::instance ( )
static
void QgsCRSCache::updateCRSCache ( const QString &  authid)

Member Data Documentation

QHash< QString, QgsCoordinateReferenceSystem > QgsCRSCache::mCRS
private

Definition at line 61 of file qgscrscache.h.

Referenced by crsByAuthId(), and updateCRSCache().

QgsCRSCache * QgsCRSCache::mInstance = 0
staticprivate

Definition at line 60 of file qgscrscache.h.

Referenced by instance(), and ~QgsCRSCache().

QgsCoordinateReferenceSystem QgsCRSCache::mInvalidCRS
private

CRS that is not initialised (returned in case of error)

Definition at line 63 of file qgscrscache.h.

Referenced by crsByAuthId().


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