Skip to content

Commit 75c76f5

Browse files
ninsblm-kuhn
authored andcommittedMay 23, 2016
[processing] Don't round grass7 extent and resolution to integer
fix #14582 See: https://hub.qgis.org/issues/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: https://grass.osgeo.org/grass70/manuals/g.region.html GRASS 6.4 algs do not use the a-flag either, which explains why this bug appears only for GRASS 7.
1 parent 726a013 commit 75c76f5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ def processInputs(self):
383383
unicode(self.getParameterValue(self.GRASS_REGION_EXTENT_PARAMETER))
384384
regionCoords = region.split(',')
385385
command = 'g.region'
386-
command += ' -a'
387386
command += ' n=' + unicode(regionCoords[3])
388387
command += ' s=' + unicode(regionCoords[2])
389388
command += ' e=' + unicode(regionCoords[1])

0 commit comments

Comments
 (0)
Please sign in to comment.