[GRASS-user] Cut DEM by SHP

Hamish hamish_nospam at yahoo.com
Sun Nov 26 21:02:55 EST 2006


Salvator*eL*arosa wrote:
> 
> Is it possible to cut a raster (dem) through a shape or a vector?

If I understand correctly:  (there are other 3D tools for planes)

g.region rast=MapName
v.to.rast

then either create a raster map named MASK (see r.mask) or
  r.mapcalc newmap='if(isnull(vect_mask), null(), MapName)'
                  # if(  this , then do this,  else do this  )


Hamish




More information about the grass-user mailing list