Skip to content
Permalink
Browse files

Merge pull request #3584 from nirvn/db_manager_fixes

[db manager] non-spatial import & spatialite error reporting fixes
  • Loading branch information
nyalldawson committed Oct 14, 2016
2 parents b7321ec + 20d006e commit ea2fbd1c64dfc44254b7593a636e6d43cebdd70b
@@ -31,6 +31,7 @@
from ..plugin import ConnectionError, DbError, Table

from qgis.utils import spatialite_connect
import sqlite3 as sqlite


def classFactory():
@@ -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)
@@ -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)

0 comments on commit ea2fbd1

Please sign in to comment.
You can’t perform that action at this time.