28 QgsCoordinateTransformCache::QgsCoordinateTransformCache()
35 for ( ; tIt != mTransforms.constEnd(); ++tIt )
44 mTransforms.values( qMakePair( srcAuthId, destAuthId ) );
47 for ( ; valIt != values.
constEnd(); ++valIt )
50 ( *valIt )->sourceDatumTransform() == srcDatumTransform &&
51 ( *valIt )->destinationDatumTransform() == destDatumTransform )
64 mTransforms.insertMulti( qMakePair( srcAuthId, destAuthId ), ct );
74 for ( ; it != mTransforms.constEnd(); ++it )
76 if ( it.
key().first == crsAuthId || it.
key().second == crsAuthId )
84 for ( ; updateIt != updateList.
constEnd(); ++updateIt )
86 mTransforms.
remove( *updateIt );
164 if ( crsIt == mCRSProj4.
constEnd() )
224 if ( crsIt == mCRSSrsId.
constEnd() )
QgsCoordinateReferenceSystem crsByEpsgId(long epsg) const
Returns the CRS from a given EPSG ID.
iterator insert(const Key &key, const T &value)
QgsCoordinateReferenceSystem crsByOgcWmsCrs(const QString &ogcCrs) const
Returns the CRS from a given OGC WMS-format Coordinate Reference System string.
const Key key(const T &value) const
bool createFromWkt(const QString &theWkt)
Set up this CRS using a WKT spatial ref sys definition.
void append(const T &value)
Q_DECL_DEPRECATED QgsCoordinateReferenceSystem crsByAuthId(const QString &authid)
Returns the CRS for authid, e.g.
const_iterator constEnd() const
bool createFromOgcWmsCrs(const QString &theCrs)
Sets this CRS to the given OGC WMS-format Coordinate Reference Systems.
QgsCoordinateReferenceSystem crsByWkt(const QString &wkt) const
Returns the CRS from a WKT spatial ref sys definition string.
const_iterator constFind(const Key &key) const
QgsCoordinateReferenceSystem crsBySrsId(long srsId) const
Returns the CRS from a specified QGIS SRS ID.
QString number(int n, int base)
bool createFromSrsId(const long theSrsId)
Set up this CRS by fetching the appropriate information from the sqlite backend.
const_iterator constEnd() const
int remove(const Key &key)
int remove(const Key &key)
Caches QgsCoordinateReferenceSystem construction, which may be expensive.
const T value(const Key &key) const
const_iterator constBegin() const
QgsCoordinateReferenceSystem crsByProj4(const QString &proj4) const
Returns the CRS from a proj4 style formatted string.
Class for storing a coordinate reference system (CRS)
void updateCRSCache(const QString &authid)
Updates the cached definition of a CRS.
const_iterator constEnd() const
const_iterator constBegin() const
static QgsCRSCache * instance()
Returns a pointer to the QgsCRSCache singleton.
bool createFromProj4(const QString &theProjString)
Set up this CRS by passing it a proj4 style formatted string.