23 QHash< QPair< QString, QString >,
QgsCoordinateTransform* >::const_iterator tIt = mTransforms.constBegin();
24 for ( ; tIt != mTransforms.constEnd(); ++tIt )
34 QList< QgsCoordinateTransform* > values =
35 mTransforms.values( qMakePair( srcAuthId, destAuthId ) );
37 QList< QgsCoordinateTransform* >::const_iterator valIt = values.constBegin();
38 for ( ; valIt != values.constEnd(); ++valIt )
41 ( *valIt )->sourceDatumTransform() == srcDatumTransform &&
42 ( *valIt )->destinationDatumTransform() == destDatumTransform )
55 mTransforms.insertMulti( qMakePair( srcAuthId, destAuthId ), ct );
63 QList< QPair< QString, QString > > updateList;
65 for ( ; it != mTransforms.constEnd(); ++it )
67 if ( it.key().first == crsAuthId || it.key().second == crsAuthId )
69 updateList.append( it.key() );
74 QList< QPair< QString, QString > >::const_iterator updateIt = updateList.constBegin();
75 for ( ; updateIt != updateList.constEnd(); ++updateIt )
77 mTransforms.remove( *updateIt );
101 mCRS.insert( authid, s );
105 mCRS.remove( authid );
113 QHash< QString, QgsCoordinateReferenceSystem >::const_iterator crsIt = mCRS.find( authid );
114 if ( crsIt == mCRS.constEnd() )
121 return mCRS.insert( authid, s ).value();
125 return crsIt.value();
131 return crsByAuthId(
"EPSG:" + QString::number( epsg ) );