[GRASS-dev] [GRASS GIS] #1718: r.resamp.rst broken in GRASS 7

GRASS GIS trac at osgeo.org
Mon Sep 3 06:53:00 PDT 2012


#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 at 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 at 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.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1718>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list