Skip to content
Permalink
Browse files

Processing - Add GeoPackage support in qgis:convertformat

This commit adds the support for GeoPackage format as output format in the qgis:convertformat python script.
  • Loading branch information
mdouchin committed Oct 8, 2018
1 parent c23c3d2 commit b267182566731d519a8365a0445eaddfdc9bd383
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/gdal/ogr2ogr.py
@@ -62,6 +62,7 @@
'ODS',
'XLSX',
'PDF',
'GPKG'
]

EXTS = [
@@ -87,6 +88,7 @@
'.ods',
'.xlsx',
'.pdf',
'.gpkg'
]


@@ -127,7 +129,7 @@ def getConsoleCommands(self):
output = ogrConnectionString(outFile)
options = unicode(self.getParameterValue(self.OPTIONS))

if outFormat == 'SQLite' and os.path.isfile(output):
if outFormat in ('SQLite', 'GPKG') and os.path.isfile(output):
os.remove(output)

arguments = []

0 comments on commit b267182

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