Merge pull request #3481 from GeoCat/master

- Replaced use of deprecated QgsMapCanvas attribute "mapRenderer" by mapSettings
This commit is contained in:
Matthias Kuhn 2016-09-13 21:09:04 +02:00 committed by GitHub
commit 9215fca239

View File

@ -551,7 +551,7 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
points = bbox_to_polygon(record.bbox)
if points is not None:
src = QgsCoordinateReferenceSystem(4326)
dst = self.map.mapRenderer().destinationCrs()
dst = self.map.mapSettings().destinationCrs()
geom = QgsGeometry.fromPolygon(points)
if src.postgisSrid() != dst.postgisSrid():
ctr = QgsCoordinateTransform(src, dst)