Skip to content

Commit

Permalink
[processing] fix handling of the HTML output from the GRASS7
Browse files Browse the repository at this point in the history
algorithms (fix #12710)

Conflicts:
	python/plugins/processing/algs/grass7/Grass7Algorithm.py
  • Loading branch information
alexbruy committed May 20, 2015
1 parent 393446d commit 475bffa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -78,7 +78,7 @@ def getIcon(self):
return QIcon(os.path.dirname(__file__) + '/../../images/grass.png')

def help(self):
return False, 'http://grass.osgeo.org/grass70/manuals/' + self.grassName \
return False, 'http://grass.osgeo.org/grass70/manuals/' + self.grass7Name \
+ '.html'

def getParameterDescriptions(self):
Expand All @@ -104,7 +104,7 @@ def getParameterDescriptions(self):
def defineCharacteristicsFromFile(self):
lines = open(self.descriptionFile)
line = lines.readline().strip('\n').strip()
self.grassName = line
self.grass7Name = line
line = lines.readline().strip('\n').strip()
self.name = line
line = lines.readline().strip('\n').strip()
Expand Down Expand Up @@ -288,7 +288,7 @@ def processAlgorithm(self, progress):

# 2: Set parameters and outputs

command = self.grassName
command = self.grass7Name
for param in self.parameters:
if param.value is None or param.value == '':
continue
Expand Down Expand Up @@ -358,7 +358,7 @@ def processAlgorithm(self, progress):
commands.append('g.region raster=' + out.name + uniqueSufix)
outputCommands.append('g.region raster=' + out.name
+ uniqueSufix)
if self.grassName == 'r.composite':
if self.grass7Name == 'r.composite':
command = 'r.out.tiff -t --verbose' # FIXME r.out.tiff deprecated, use r.out.gdal
command += ' input='
command += out.name + uniqueSufix
Expand All @@ -369,7 +369,7 @@ def processAlgorithm(self, progress):
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='

if self.grassName == 'r.horizon':
if self.grass7Name == 'r.horizon':
command += out.name + uniqueSufix + '_0'
else:
command += out.name + uniqueSufix
Expand Down

0 comments on commit 475bffa

Please sign in to comment.