Skip to content

Commit b6fb784

Browse files
committedJan 24, 2017
[processing] allow other output formats than shapefile in GDAL
polygonize (cherry picked from commit 8f291a9)
1 parent bee5f80 commit b6fb784

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

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

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

5555
def getConsoleCommands(self):
56+
output = self.getOutputValue(polygonize.OUTPUT)
57+
5658
arguments = []
5759
arguments.append(self.getParameterValue(polygonize.INPUT))
5860
arguments.append('-f')
59-
arguments.append('ESRI Shapefile')
60-
output = self.getOutputValue(polygonize.OUTPUT)
61+
arguments.append(GdalUtils.getVectorDriverFromFileName(output))
6162
arguments.append(output)
6263
arguments.append(QtCore.QFileInfo(output).baseName())
6364
arguments.append(self.getParameterValue(polygonize.FIELD))

0 commit comments

Comments
 (0)
Please sign in to comment.