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

GRASS GIS trac at osgeo.org
Thu May 23 03:43:05 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 [ticket:1977 pvanbosgeo]:
 > In the helpfile of r.random.cells, it is mentioned that "Random cells
 will not be generated in areas masked off". However, in reality the
 function does not (seem to) respect the MASK.

 Try r56375. The bug comes from the times when zero was regarded as NULL.
 Actually it should not work either in 6.x because for CELL_TYPE NULL != 0.

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

More information about the grass-dev mailing list