File tree 2 files changed +24
-12
lines changed
2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -660,21 +660,21 @@ bool QgsMapRenderer::hasCrsTransformEnabled()
660
660
return mProjectionsEnabled ;
661
661
}
662
662
663
- void QgsMapRenderer::setDestinationSrs ( const QgsCoordinateReferenceSystem& srs )
663
+ void QgsMapRenderer::setDestinationCrs ( const QgsCoordinateReferenceSystem& crs )
664
664
{
665
- QgsDebugMsg ( " * Setting destCRS : = " + srs .toProj4 () );
666
- QgsDebugMsg ( " * DestCRS.srsid() = " + QString::number ( srs .srsid () ) );
667
- if ( *mDestCRS != srs )
665
+ QgsDebugMsg ( " * Setting destCRS : = " + crs .toProj4 () );
666
+ QgsDebugMsg ( " * DestCRS.srsid() = " + QString::number ( crs .srsid () ) );
667
+ if ( *mDestCRS != crs )
668
668
{
669
- QgsDebugMsg ( " Setting DistArea CRS to " + QString::number ( srs .srsid () ) );
670
- mDistArea ->setSourceCrs ( srs .srsid () );
671
- *mDestCRS = srs ;
669
+ QgsDebugMsg ( " Setting DistArea CRS to " + QString::number ( crs .srsid () ) );
670
+ mDistArea ->setSourceCrs ( crs .srsid () );
671
+ *mDestCRS = crs ;
672
672
updateFullExtent ();
673
673
emit destinationSrsChanged ();
674
674
}
675
675
}
676
676
677
- const QgsCoordinateReferenceSystem& QgsMapRenderer::destinationSrs ()
677
+ const QgsCoordinateReferenceSystem& QgsMapRenderer::destinationCrs ()
678
678
{
679
679
QgsDebugMsgLevel ( " * Returning destCRS" , 3 );
680
680
QgsDebugMsgLevel ( " * DestCRS.srsid() = " + QString::number ( mDestCRS ->srsid () ), 3 );
Original file line number Diff line number Diff line change @@ -169,11 +169,23 @@ class CORE_EXPORT QgsMapRenderer : public QObject
169
169
// ! returns true if projections are enabled for this layer set
170
170
bool hasCrsTransformEnabled ();
171
171
172
- // ! sets destination spatial reference system
173
- void setDestinationSrs ( const QgsCoordinateReferenceSystem& srs );
172
+ /* * sets destination coordinate reference system
173
+ * @note deprecated by qgis 1.7
174
+ * @see setDestinationCrs
175
+ */
176
+ Q_DECL_DEPRECATED void setDestinationSrs ( const QgsCoordinateReferenceSystem& srs ) { setDestinationCrs ( srs ); };
177
+
178
+ /* * returns CRS of destination coordinate reference system
179
+ * @note deprecated by qgis 1.7
180
+ * @see destinationCrs
181
+ */
182
+ Q_DECL_DEPRECATED const QgsCoordinateReferenceSystem& destinationSrs () { return destinationCrs (); };
183
+
184
+ // ! sets destination coordinate reference system
185
+ void setDestinationCrs ( const QgsCoordinateReferenceSystem& crs );
174
186
175
- // ! returns CRS of destination spatial reference system
176
- const QgsCoordinateReferenceSystem& destinationSrs ();
187
+ // ! returns CRS of destination coordinate reference system
188
+ const QgsCoordinateReferenceSystem& destinationCrs ();
177
189
178
190
void setOutputUnits ( OutputUnits u ) {mOutputUnits = u;}
179
191
You can’t perform that action at this time.
0 commit comments