QgsMapCanvas setDestinationCrs doesn't work as expected #28141
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Map and Legend
Related to map or legend rendering
Author Name: Matthew Jurewicz (Matthew Jurewicz)
Original Redmine Issue: 20320
Affected QGIS version: 3.2.3
Redmine category:map_canvas
The following Python code shows how the destination CRS isn't set the 2nd time:
crs = QgsCoordinateReferenceSystem()
crs.createFromProj4('+proj=tmerc +ellps=WGS84 +datum=WGS84 +no_defs')
iface.mapCanvas().setDestinationCrs(crs)
iface.mapCanvas().mapSettings().destinationCrs().toProj4()
crs = QgsCoordinateReferenceSystem()
crs.createFromProj4('+proj=tmerc +ellps=WGS84 +datum=WGS84 +no_defs +lon_0=1 +lat_0=1')
iface.mapCanvas().setDestinationCrs(crs)
iface.mapCanvas().mapSettings().destinationCrs().toProj4()
The text was updated successfully, but these errors were encountered: