Vector export of spatial subset

From GRASS-Wiki
Jump to: navigation, 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 or v.overlay:

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