From 031074021b82434f3eb25677add874fe17ea3f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Heikkil=C3=A4?= Date: Sun, 24 Oct 2021 22:43:38 +0300 Subject: [PATCH] Use selected crs for map extent instead of short EPSG code from canvas crs --- simplewcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplewcs.py b/simplewcs.py index 8fa64aa..553f064 100644 --- a/simplewcs.py +++ b/simplewcs.py @@ -337,7 +337,7 @@ def getCovQueryStr(self): subset1 = label1 + '(' + str(coordinates[1]) + ',' + str(coordinates[3]) + ')' outputcrs = self.dlg.cbCRS.currentText() - mapcrs = self.iface.mapCanvas().mapSettings().destinationCrs().authid() + mapcrs = self.dlg.cbCRS.currentText() format = self.dlg.cbFormat.currentText() params = [('REQUEST', 'GetCoverage'), ('SERVICE', 'WCS'), ('VERSION', version), ('COVERAGEID', covId), ('OUTPUTCRS', outputcrs), ('SUBSETTINGCRS', mapcrs), ('FORMAT', format), ('SUBSET', subset0), ('SUBSET', subset1)]