Skip to content

Commit

Permalink
set layer crs patch
Browse files Browse the repository at this point in the history
  • Loading branch information
myarjunar committed Jun 6, 2017
1 parent 21c0c5e commit 22ddf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 22ddf47

Please sign in to comment.