Skip to content
Permalink
Browse files

better GRASS7 default raster resolution and fix r.composite

  • Loading branch information
Giovanni Manghi
Giovanni Manghi committed Apr 26, 2015
1 parent d0fea65 commit 031f9a9fe93d2bcda2aac7cd6711011b459a05fa
Showing with 5 additions and 4 deletions.
  1. +5 −4 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -194,7 +194,7 @@ def getDefaultCellsize(self):
)

if cellsize == 0:
cellsize = 1
cellsize = 100
return cellsize

def processAlgorithm(self, progress):
@@ -359,18 +359,19 @@ def processAlgorithm(self, progress):
outputCommands.append('g.region raster=' + out.name
+ uniqueSufix)
if self.grassName == 'r.composite':
command = 'r.out.tiff -t --verbose' # FIXME r.out.tiff deprecated, use r.out.gdal
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='
command += out.name + uniqueSufix
command += ' output="' + filename + '"'
commands.append(command)
outputCommands.append(command)
else:
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='

if self.grassName == 'r.horizon':
command += out.name + uniqueSufix + '_0'
elif self.grassName == 'r.composite':
commands.append(command)
outputCommands.append(command)
else:
command += out.name + uniqueSufix
command += ' output="' + filename + '"'

0 comments on commit 031f9a9

Please sign in to comment.
You can’t perform that action at this time.