Skip to content
Browse files
[processing] Don't round grass7 extent and resolution to integer
fix #14582

The commit removes the a-flag when the grass region for raster analysis is set. The a-flag causes in some cases unwanted rounding of raster extend / resolution, and should not be set hardcoded in processing. It is usually used in combination with the "res" option.
For aligning the pixels of the GRASS region to a specific raster, the align option should be used (and not the a-flag). See:
GRASS 6.4 algs do not use the a-flag either, which explains why this bug appears only for GRASS 7.
  • Loading branch information
ninsbl authored and m-kuhn committed May 23, 2016
1 parent 726a013 commit 75c76f51f17d88226fb86826e9aa8c4d96eedb5a
Showing with 0 additions and 1 deletion.
  1. +0 −1 python/plugins/processing/algs/grass7/
@@ -383,7 +383,6 @@ def processInputs(self):
regionCoords = region.split(',')
command = 'g.region'
command += ' -a'
command += ' n=' + unicode(regionCoords[3])
command += ' s=' + unicode(regionCoords[2])
command += ' e=' + unicode(regionCoords[1])

0 comments on commit 75c76f5

Please sign in to comment.