Skip to content

Commit

Permalink
[db manager] fix non-spatial import
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 7, 2016
1 parent a9e9a6e commit dab18e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/dlg_export_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def accept(self):
if self.chkDropTable.isChecked():
options['overwrite'] = True

outCrs = None
outCrs = QgsCoordinateReferenceSystem
if self.chkTargetSrid.isEnabled() and self.chkTargetSrid.isChecked():
targetSrid = int(self.editTargetSrid.text())
outCrs = QgsCoordinateReferenceSystem(targetSrid)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/dlg_import_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def accept(self):
if self.chkSinglePart.isEnabled() and self.chkSinglePart.isChecked():
options['forceSinglePartGeometryType'] = True

outCrs = None
outCrs = QgsCoordinateReferenceSystem()
if self.chkTargetSrid.isEnabled() and self.chkTargetSrid.isChecked():
targetSrid = int(self.editTargetSrid.text())
outCrs = QgsCoordinateReferenceSystem(targetSrid)
Expand Down

0 comments on commit dab18e7

Please sign in to comment.