Vector export of spatial subset

From GRASS-Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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