#1718: r.resamp.rst broken in GRASS 7
-------------------------+--------------------------------------------------
Reporter: rsbivand | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Running r.resamp.rst fails in 7, succeeds in 6.4.2. In 6.4.2, spearfish,
with region set to elevation.dem, this works:
r.resamp.rst --overwrite --verbose input=elevation.dem@PERMANENT ew_res=15
ns_res=15 elev=elev15
Processing all selected output files will require
4719648 bytes of disk space for temp files.
Temporarily changing the region to desired resolution ...
Changing back to the original region ...
Percent complete:
dnorm in ressegm after grid before out2= 388.844442
dnorm in mainc after grid before out1= 388.844442
dnorm in mainc after grid before out2= 388.844442
Temporarily changing the region to desired resolution...
Changing the region back to initial...
r.resamp.rst complete.
In 7 (latest svn up), with region set to elevation.dem:
r.resamp.rst --overwrite --verbose input=elevation.dem@PERMANENT ew_res=15
ns_res=15 elev=elev15
Processing all selected output files will require
4.50 MB of disk space for temp files.
Temporarily changing the region to desired resolution ...
ERROR: Input window changed while maps are open for read
The error message comes from lib/raster/set_window.c, but the cause may be
in raster window handling logic 6/7. This seems to cut in about line 480
in raster/r.resamp.rst/main.c:
Rast_set_window(&outhd);
which calls:
update_window_mappings();
in the library file cited, and triggers the error.
GRASS 7.0.0svn (spearfish60_grass7):~ > r.resamp.rst --overwrite --verbose
input=elevation.dem@PERMANENT ew_res=15 ns_res=15 elev=elev15
Processing all selected output files will require
4.50 MB of disk space for temp files.
Temporarily changing the region to desired resolution ...
Changing back to the original region ...
Percent complete:
100%
dnorm in ressegm after grid before out2= 388.844442
dnorm in mainc after grid before out1= 388.844442
dnorm in mainc after grid before out2= 388.844442
Temporarily changing the region to desired resolution...
Changing the region back to initial...
r.resamp.rst complete.