Skip to content

Commit 2a656f1

Browse files
author
wonder
committed
PyQGIS: added new destination CRS methods, deprecated old ones.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15619 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d4e8681 commit 2a656f1

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

python/core/qgsmaprenderer.sip

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,23 @@ class QgsMapRenderer : QObject
139139
//! returns true if projections are enabled for this layer set
140140
bool hasCrsTransformEnabled();
141141

142-
//! sets destination spatial reference system
143-
void setDestinationSrs(const QgsCoordinateReferenceSystem& srs);
144-
145-
//! returns CRS ID of destination spatial reference system
146-
const QgsCoordinateReferenceSystem& destinationSrs();
142+
/** sets destination coordinate reference system
143+
* @note deprecated by qgis 1.7
144+
* @see setDestinationCrs
145+
*/
146+
void setDestinationSrs( const QgsCoordinateReferenceSystem& srs ) /Deprecated/;
147+
148+
/** returns CRS of destination coordinate reference system
149+
* @note deprecated by qgis 1.7
150+
* @see destinationCrs
151+
*/
152+
const QgsCoordinateReferenceSystem& destinationSrs() /Deprecated/;
153+
154+
//! sets destination coordinate reference system
155+
void setDestinationCrs( const QgsCoordinateReferenceSystem& crs );
156+
157+
//! returns CRS of destination coordinate reference system
158+
const QgsCoordinateReferenceSystem& destinationCrs();
147159

148160
void setOutputUnits( OutputUnits u );
149161

0 commit comments

Comments
 (0)