Skip to content

Commit

Permalink
Processing - Add GeoPackage support in qgis:convertformat
Browse files Browse the repository at this point in the history
This commit adds the support for GeoPackage format as output format in the qgis:convertformat python script.
  • Loading branch information
mdouchin committed Oct 23, 2018
1 parent c23c3d2 commit b267182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/algs/gdal/ogr2ogr.py
Expand Up @@ -62,6 +62,7 @@
'ODS',
'XLSX',
'PDF',
'GPKG'
]

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


Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit b267182

Please sign in to comment.