From 8f291a92df1667e718d49a4108e6f44721357f40 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Fri, 13 Jan 2017 09:16:19 +0200 Subject: [PATCH] [processing] allow other output formats than shapefile in GDAL polygonize --- python/plugins/processing/algs/gdal/polygonize.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/algs/gdal/polygonize.py b/python/plugins/processing/algs/gdal/polygonize.py index 178a1ada4dff..624285c8dd5e 100644 --- a/python/plugins/processing/algs/gdal/polygonize.py +++ b/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))