[GRASS-dev] Re: [GRASS GIS] #1511: r3.mapcalc error

GRASS GIS trac at osgeo.org
Fri Dec 16 15:10:04 EST 2011


#1511: r3.mapcalc error
----------------------------------+-----------------------------------------
 Reporter:  mmetz                 |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  normal                |   Milestone:  7.0.0                    
Component:  Raster3D              |     Version:  svn-trunk                
 Keywords:  raster3d, r3.mapcalc  |    Platform:  Linux                    
      Cpu:  All                   |  
----------------------------------+-----------------------------------------

Comment(by huhabla):

 Replying to [comment:2 glynn]:
 > Replying to [ticket:1511 mmetz]:
 > > Any ideas?
 > Either the map is corrupted, or there's a bug in the raster3d library.
 Requesting a cell which is outside of the map should just produce a null
 value.
 > FWIW, I don't think that r49789 will affect this, as
 Rast3d_nearest_neighbor() already performs bounds checks before calling
 Rast3d_get_value_region().


 This is true indeed. I have removed the redundant spatial boundary check
 from
 Rast3d_nearest_neighbor, as IMHO this should be done in
 Rast3d_get_value_regions.

 Looks like a bug in Rast3d_coord2tile_index() or Rast3d_get_tile_ptr()
 ....

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1511#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list