[GRASS-dev] [GRASS GIS] #1977: r.random.cells does not respect MASK

GRASS GIS trac at osgeo.org
Thu May 23 23:27:12 PDT 2013


#1977: r.random.cells does not respect MASK
----------------------------------+-----------------------------------------
 Reporter:  pvanbosgeo            |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  normal                |   Milestone:  7.0.0                    
Component:  Raster                |     Version:  svn-trunk                
 Keywords:  r.random.cells, mask  |    Platform:  Unspecified              
      Cpu:  Unspecified           |  
----------------------------------+-----------------------------------------

Comment(by mmetz):

 Replying to [comment:7 hamish]:
 > Replying to [comment:5 mmetz]:
 > > Actually it should not work either in 6.x because for CELL_TYPE NULL
 != 0.
 >
 > and yet it does work there.
 >
 > perhaps because it uses G_get_map_row_nomask()?

 Trunk uses Rast_get_c_row_nomask().

 I created a MASK that contains only NULL and 1, no zero. Therefore I think
 it is a bug in G_get_map_row_nomask() of 6.x, converting NULL to zero.

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



More information about the grass-dev mailing list