Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 27, 2015
1 parent 6919d98 commit 596b126
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -361,20 +361,21 @@ def processAlgorithm(self, progress):
commands.append('g.region raster=' + out.name + uniqueSufix)
outputCommands.append('g.region raster=' + out.name
+ uniqueSufix)

if self.grassName == 'r.statistics':
# r.statistics saves its results in a non-qgis compatible way.
# Post-Process with r.mapcalc.
# r.statistics saves its results in a non-qgis compatible
# way. Post-process them with r.mapcalc.
calcExpression = 'correctedoutput' + uniqueSufix
calcExpression += '=@' + out.name + uniqueSufix
command = 'r.mapcalc expression="' + calcExpression + '"'
commands.append(command)
outputCommands.append(command)

command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='
command += out.name + uniqueSufix
command += 'correctedoutput' + uniqueSufix
command += ' output="' + filename + '"'
elif self.grassName == 'r.statistics':
elif self.grass7Name == 'r.composite':
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='
command += 'correctedoutput' + uniqueSufix
Expand All @@ -388,7 +389,7 @@ def processAlgorithm(self, progress):
elif self.grass7Name == 'r.composite':
commands.append(command)
outputCommands.append(command)
elif self.grassName == 'r.statistics':
elif self.grass7Name == 'r.statistics':
commands.append(command)
outputCommands.append(command)
else:
Expand Down

0 comments on commit 596b126

Please sign in to comment.