Hi Tom,
On Wed, 17. Sep 2014 at 14:43:29 +, Tom Chadwin wrote:
> Is that correct? If so (as a QGIS plugin and Python beginner) what is the
> best way to handle the deprecation and maintain backwards compatibility,
> given that QgsMapCanvas.mapRenderer() is only in 2.4+?
You could use:
try:
I see that QgsMapCanvas.mapRenderer() is deprecated. We are currently using it
as follows:
crsSrc = qgis.utils.iface.mapCanvas().mapRenderer().destinationCrs()
If I read the documentation correctly, the new way of achieving this is:
crsSrc = qgis.utils.iface.mapCanvas().mapSettings().destinatio