[GRASS-dev] [GRASS GIS] #1838: r.mask: allow use of vector map as input

GRASS GIS trac at osgeo.org
Mon May 20 07:32:36 PDT 2013

#1838: r.mask: allow use of vector map as input
  Reporter:  mlennert     |       Owner:  grass-dev@…              
      Type:  enhancement  |      Status:  closed                   
  Priority:  normal       |   Milestone:  7.0.0                    
 Component:  Raster       |     Version:  svn-trunk                
Resolution:  fixed        |    Keywords:  mask, vector, r.mask     
  Platform:  Unspecified  |         Cpu:  Unspecified              

Comment(by hamish):

 To be honest, I find it hard to justify not running `v.to.rast` + r.mask
 as a two step process. You either respect the current region setting, or
 the v.to.rast operation is partially undefined. Having the module change
 the region (and if so, internally, via WIND_OVERRIDE & the
 grass.use_temp_region() python function) for any reason seems like a
 slight misfeature to me.

 Consider the case that the vector is much larger than the raster (national
 coastline, I'm offen making coastal "land.mask" rasters from that), you
 wouldn't want to rasterize the entire country at the current raster
 resolution. Of course it's possible to only shrink the region with a
 little scripting work, and it could be a nice efficiency trick to do that,
 but be careful that the logic for it might fail for lat/lon near the

 do one thing well,

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

More information about the grass-dev mailing list