Skip to content

Commit e3cb33a

Browse files
committed
[processing] allow other output formats than shapefile in GDAL
polygonize (cherry picked from commit 8f291a9)
1 parent 57a003e commit e3cb33a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎python/plugins/processing/algs/gdal/polygonize.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ def defineCharacteristics(self):
6262
self.addOutput(OutputVector(polygonize.OUTPUT, self.tr('Vectorized')))
6363

6464
def getConsoleCommands(self):
65+
output = self.getOutputValue(polygonize.OUTPUT)
66+
6567
arguments = []
6668
arguments.append(self.getParameterValue(polygonize.INPUT))
6769
arguments.append('-f')
68-
arguments.append('ESRI Shapefile')
69-
output = self.getOutputValue(polygonize.OUTPUT)
70+
arguments.append(GdalUtils.getVectorDriverFromFileName(output))
7071
arguments.append(output)
7172
arguments.append(QFileInfo(output).baseName())
7273
arguments.append(self.getParameterValue(polygonize.FIELD))

0 commit comments

Comments
 (0)