Vector export of spatial subset

From GRASS-Wiki
Jump to navigation Jump to search

Q: How can I export only parts of a vector map, say, the part of the current region?

A: You need to cut the map first (only raster maps are region sensitive) with v.select or v.overlay:

  # create cut box
  v.in.region boxmap
  
  # if point map, do
  v.select ainput=mypoints binput=boxmap output=mypoints_subset
  
  # if line or area map, do
  v.overlay ainput=myarea binput=boxmap operator=and output=myarea_subset