Skip to content
Permalink
Browse files

[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 57a003e commit e3cb33aeb0773d8ff9fadcb1d952d688c743dc64
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/algs/gdal/polygonize.py
@@ -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))

0 comments on commit e3cb33a

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