Skip to content

Commit

Permalink
[processing] enable non-tif outputs in gdaldem algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Oct 6, 2014
1 parent 559c2d9 commit a39315a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 5 additions & 1 deletion python/plugins/processing/algs/gdal/aspect.py
Expand Up @@ -73,7 +73,11 @@ def defineCharacteristics(self):
def processAlgorithm(self, progress):
arguments = ['aspect']
arguments.append(unicode(self.getParameterValue(self.INPUT)))
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))
output = unicode(self.getOutputValue(self.OUTPUT))
arguments.append(output)

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

arguments.append('-b')
arguments.append(str(self.getParameterValue(self.BAND)))
Expand Down
8 changes: 7 additions & 1 deletion python/plugins/processing/algs/gdal/roughness.py
Expand Up @@ -55,11 +55,17 @@ def defineCharacteristics(self):
def processAlgorithm(self, progress):
arguments = ['roughness']
arguments.append(unicode(self.getParameterValue(self.INPUT)))
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))
output = unicode(self.getOutputValue(self.OUTPUT))
arguments.append(output)

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

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



if self.getParameterValue(self.COMPUTE_EDGES):
arguments.append('-compute_edges')

Expand Down
6 changes: 5 additions & 1 deletion python/plugins/processing/algs/gdal/slope.py
Expand Up @@ -67,7 +67,11 @@ def defineCharacteristics(self):
def processAlgorithm(self, progress):
arguments = ['slope']
arguments.append(unicode(self.getParameterValue(self.INPUT)))
arguments.append(unicode(self.getOutputValue(self.OUTPUT)))
output = unicode(self.getOutputValue(self.OUTPUT))
arguments.append(output)

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

arguments.append('-b')
arguments.append(str(self.getParameterValue(self.BAND)))
Expand Down

0 comments on commit a39315a

Please sign in to comment.