Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] allow other output formats than shapefile in GDAL
polygonize

(cherry picked from commit 8f291a9)
  • Loading branch information
alexbruy committed Jan 24, 2017
1 parent bee5f80 commit b6fb784
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 @@ -53,11 +53,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(QtCore.QFileInfo(output).baseName())
arguments.append(self.getParameterValue(polygonize.FIELD))
Expand Down

0 comments on commit b6fb784

Please sign in to comment.