Skip to content

Commit

Permalink
[processing] allow other output formats than shapefile in GDAL
Browse files Browse the repository at this point in the history
polygonize
  • Loading branch information
alexbruy committed Jan 13, 2017
1 parent 62c5069 commit 8f291a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/gdal/polygonize.py
Expand Up @@ -62,11 +62,12 @@ def defineCharacteristics(self):
self.addOutput(OutputVector(polygonize.OUTPUT, self.tr('Vectorized')))

def getConsoleCommands(self):
output = self.getOutputValue(polygonize.OUTPUT)

arguments = []
arguments.append(self.getParameterValue(polygonize.INPUT))
arguments.append('-f')
arguments.append('ESRI Shapefile')
output = self.getOutputValue(polygonize.OUTPUT)
arguments.append(GdalUtils.getVectorDriverFromFileName(output))
arguments.append(output)
arguments.append(QFileInfo(output).baseName())
arguments.append(self.getParameterValue(polygonize.FIELD))
Expand Down

0 comments on commit 8f291a9

Please sign in to comment.