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

GRASS GIS trac at osgeo.org
Wed Feb 19 13:15:59 PST 2014


#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  |  
-------------------------+--------------------------------------------------

Comment(by stopkovaE):

 I have had the same error using r3.mapcalc ("ERROR:
 Rast3d_get_double_region: error in Rast3d_get_tile_ptr.Region coordinates
 x 0 y 0 z 0  tile index 0 offset 0"). I tried to disable  threading and it
 works now...

 {{{
 #!diff
 Index: raster/r.mapcalc/evaluate.c
 ===================================================================
 --- raster/r.mapcalc/evaluate.c (revision 59096)
 +++ raster/r.mapcalc/evaluate.c (working copy)
 @@ -324,7 +324,7 @@
      count = rows * depths;
      n = 0;

 -    G_init_workers();
 +    //G_init_workers();

      for (current_depth = 0; current_depth < depths; current_depth++)
         for (current_row = 0; current_row < rows; current_row++) {
 @@ -347,7 +347,7 @@
             n++;
         }

 -    G_finish_workers();
 +    //G_finish_workers();

      if (verbose)
         G_percent(n, count, 2);
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2074#comment:9>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list