[GRASS-dev] [GRASS GIS] #2074: r3.mapcalc neighborhood modifier hash table and tile errors

GRASS GIS trac at osgeo.org
Tue Sep 10 05:23:45 PDT 2013

#2074: r3.mapcalc neighborhood modifier hash table and tile errors
 Reporter:  wenzeslaus   |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Raster3D     |     Version:  svn-trunk                
 Keywords:  r3.mapcalc   |    Platform:  All                      
      Cpu:  Unspecified  |  
 I'm getting errors when using the neighborhood modifier in
 [http://grass.osgeo.org/grass70/manuals/r3.mapcalc.html r3.mapcalc] in
 GRASS 7 (original post on mailing list: [http://lists.osgeo.org/pipermail
 /grass-dev/2013-September/065614.html r3.mapcalc neighborhood modifier
 error], [http://osgeo-org.1560.x6.nabble.com/r3-mapcalc-neighborhood-
 modifier-error-td5076982.html nabbe]).

 One error is about invalid tile or value and the other is about hash
 table. I don't know if both have the same cause but they are probably
 close enough to be in the same ticket.

 To generate test data use:
 r3.mapcalc "test_map = rand(0, 500)"

 First command:
 r3.mapcalc "new_map = (test_map[0, 0, 0] + test_map[1, 1, 0]) / 2"

 Its output:
 ERROR: Rast3d_get_double_region: error in Rast3d_get_tile_ptr.Region
        coordinates x 0 y 1 z 0 tile index 0 offset 64
 (Here we miss the space in the error message.)

 Second command:
 r3.mapcalc "new_map = (test_map + test_map[1, 1, 0]) / 2" --o
 (Note that `--overwrite` is necessary because the previous command created
 already the (invalid) map.)

 Its output:
 ERROR: Rast3d_cache_hash_load_name: name already in hashtable

Ticket URL: <https://trac.osgeo.org/grass/ticket/2074>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list