From 22ddf473d4c4d15520d3ba52d16704852ff16847 Mon Sep 17 00:00:00 2001 From: myarjunar Date: Tue, 6 Jun 2017 14:56:26 +0700 Subject: [PATCH] set layer crs patch --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index b8450a3..a914a60 100644 --- a/plugin.py +++ b/plugin.py @@ -171,7 +171,7 @@ def set_database_connection(self, connection=None, crs=None): settings_plugin.beginGroup(metadata.name().replace(" ", "_")) settings_postgis.beginGroup('PostgreSQL/connections') self.connection = connection - self.crs = crs + self.crs = QgsCoordinateReferenceSystem(crs) if not bool(self.connection): # fetch pre-chosen database connection self.connection = settings_plugin.value("DatabaseConnection", None)