Skip to content

Commit

Permalink
[processing] pass '-of' parameter to gdaldem algorithms (fix #17930)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 1, 2018
1 parent b8e6907 commit 0cabbb5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/gdal/ColorRelief.py
Expand Up @@ -75,6 +75,10 @@ def getConsoleCommands(self):
#arguments.append(filePath)
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))

out = unicode(self.getOutputValue(self.OUTPUT))
arguments.append('-of')
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))

arguments.append('-b')
arguments.append(unicode(self.getParameterValue(self.BAND)))

Expand Down
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/gdal/hillshade.py
Expand Up @@ -79,6 +79,10 @@ def getConsoleCommands(self):
arguments.append(unicode(self.getParameterValue(self.INPUT)))
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))

out = unicode(self.getOutputValue(self.OUTPUT))
arguments.append('-of')
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))

arguments.append('-b')
arguments.append(unicode(self.getParameterValue(self.BAND)))
arguments.append('-z')
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/gdal/roughness.py
Expand Up @@ -64,6 +64,9 @@ def getConsoleCommands(self):
arguments.append('-of')
arguments.append(GdalUtils.getFormatShortNameFromFilename(output))

arguments.append('-of')
arguments.append(GdalUtils.getFormatShortNameFromFilename(output))

arguments.append('-b')
arguments.append(unicode(self.getParameterValue(self.BAND)))

Expand Down
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/gdal/tpi.py
Expand Up @@ -61,6 +61,10 @@ def getConsoleCommands(self):
arguments.append(unicode(self.getParameterValue(self.INPUT)))
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))

out = unicode(self.getOutputValue(self.OUTPUT))
arguments.append('-of')
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))

arguments.append('-b')
arguments.append(unicode(self.getParameterValue(self.BAND)))

Expand Down
4 changes: 4 additions & 0 deletions python/plugins/processing/algs/gdal/tri.py
Expand Up @@ -61,6 +61,10 @@ def getConsoleCommands(self):
arguments.append(unicode(self.getParameterValue(self.INPUT)))
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))

out = unicode(self.getOutputValue(self.OUTPUT))
arguments.append('-of')
arguments.append(GdalUtils.getFormatShortNameFromFilename(out))

arguments.append('-b')
arguments.append(unicode(self.getParameterValue(self.BAND)))

Expand Down

0 comments on commit 0cabbb5

Please sign in to comment.