[GRASS-dev] [GRASS GIS] #1999: r.mask with NULL map doesn't work

GRASS GIS trac at osgeo.org
Wed Jun 5 16:32:44 PDT 2013

#1999: r.mask with NULL map doesn't work
 Reporter:  ferrouswheel  |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  normal        |   Milestone:  6.4.3                    
Component:  Raster        |     Version:  svn-develbranch6         
 Keywords:                |    Platform:  Linux                    
      Cpu:  Unspecified   |  
 When presenting r.mask with map containing all NULL values, it accepts the
 map and sets it as a mask.

 However, despite setting it as a mask, it does nothing. Instead of
 preventing all data from being available to read, it allows all data to be

 This is counter-intuitive. r.mask should either complain when setting a
 mask of all NULL values, or it should make it impossible to access any
 data (because there are no non-NULL cells in the source map).

 While one might question the use of a mask of all NULL cells, this can
 easily occur when scripting GRASS commands.

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

More information about the grass-dev mailing list