QGIS API Documentation
2.0.1-Dufour
|
#include <qgscrscache.h>
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 QgsCRSCache * | instance () |
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 QgsCRSCache * | mInstance = 0 |
Definition at line 45 of file qgscrscache.h.
QgsCRSCache::~QgsCRSCache | ( | ) |
Definition at line 97 of file qgscrscache.cpp.
References mInstance.
|
protected |
Definition at line 93 of file qgscrscache.cpp.
Referenced by instance().
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().
|
static |
Definition at line 84 of file qgscrscache.cpp.
References mInstance, and QgsCRSCache().
Referenced by QgsCoordinateTransform::initialise(), QgsCoordinateReferenceSystem::readXML(), updateCRSCache(), and QgsCoordinateReferenceSystem::validate().
void QgsCRSCache::updateCRSCache | ( | const QString & | authid | ) |
Definition at line 102 of file qgscrscache.cpp.
References QgsCoordinateReferenceSystem::createFromOgcWmsCrs(), instance(), and mCRS.
|
private |
Definition at line 61 of file qgscrscache.h.
Referenced by crsByAuthId(), and updateCRSCache().
|
staticprivate |
Definition at line 60 of file qgscrscache.h.
Referenced by instance(), and ~QgsCRSCache().
|
private |
CRS that is not initialised (returned in case of error)
Definition at line 63 of file qgscrscache.h.
Referenced by crsByAuthId().