Skip to content
Permalink
Browse files
Merge pull request #43546 from agiudiceandrea/fix-processing-grass-r_…
…proj

[processing][grass] Fix r.proj in Windows
  • Loading branch information
alexbruy committed Jun 5, 2021
2 parents de92ca0 + 7d57aee commit 330f73b8feb41c2dab27ffb9b1648f872441307e
@@ -69,7 +69,7 @@ def processInputs(alg, parameters, context, feedback):
if isWindows():
# TODO: make some tests under a non POSIX shell
alg.commands.append('set regVar=')
alg.commands.append('for /f "delims=" %%a in (\'r.proj -g input="{}" location="{}"\') do @set theValue=%%a'.format(
alg.commands.append('for /f "delims=" %%a in (\'r.proj -g input^="{}" location^="{}"\') do @set regVar=%%a'.format(
grassName, newLocation))
alg.commands.append('g.region -a %regVar%')
else:
@@ -806,3 +806,21 @@ tests:
type: regex
rules:
- '1.0|0.0|1.0|1.0|1|2'

- algorithm: grass7:r.proj
name: GRASS7 r.proj
params:
-n: false
GRASS_RASTER_FORMAT_META: ''
GRASS_RASTER_FORMAT_OPT: ''
GRASS_REGION_CELLSIZE_PARAMETER: 0.0
crs: EPSG:32634
input:
name: dem.tif
type: raster
memory: 300
method: 0
results:
output:
hash: caa4870e0f0f1a42583cd562c26f0ad6b7795116961c7f6053f1ccde
type: rasterhash

0 comments on commit 330f73b

Please sign in to comment.