Skip to content
Permalink
Browse files
[processing] enable non-tif outputs in gdaldem algorithms
  • Loading branch information
volaya committed Oct 6, 2014
1 parent 559c2d9 commit a39315afad6554e42304a2bdece43dce5f1af215
Showing with 17 additions and 3 deletions.
  1. +5 −1 python/plugins/processing/algs/gdal/aspect.py
  2. +7 −1 python/plugins/processing/algs/gdal/roughness.py
  3. +5 −1 python/plugins/processing/algs/gdal/slope.py
@@ -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)))
@@ -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')

@@ -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)))

0 comments on commit a39315a

Please sign in to comment.