Skip to content

Commit c79dd9d

Browse files
committedApr 26, 2015
Merge pull request #2006 from NaturalGIS/grass7_better_default_raster_resolution
better GRASS7 default raster resolution and fix r.composite
2 parents e7e0279 + 031f9a9 commit c79dd9d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def getDefaultCellsize(self):
194194
)
195195

196196
if cellsize == 0:
197-
cellsize = 1
197+
cellsize = 100
198198
return cellsize
199199

200200
def processAlgorithm(self, progress):
@@ -359,18 +359,19 @@ def processAlgorithm(self, progress):
359359
outputCommands.append('g.region raster=' + out.name
360360
+ uniqueSufix)
361361
if self.grassName == 'r.composite':
362-
command = 'r.out.tiff -t --verbose' # FIXME r.out.tiff deprecated, use r.out.gdal
362+
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
363363
command += ' input='
364364
command += out.name + uniqueSufix
365365
command += ' output="' + filename + '"'
366-
commands.append(command)
367-
outputCommands.append(command)
368366
else:
369367
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
370368
command += ' input='
371369

372370
if self.grassName == 'r.horizon':
373371
command += out.name + uniqueSufix + '_0'
372+
elif self.grassName == 'r.composite':
373+
commands.append(command)
374+
outputCommands.append(command)
374375
else:
375376
command += out.name + uniqueSufix
376377
command += ' output="' + filename + '"'

0 commit comments

Comments
 (0)
Please sign in to comment.