Crop a shapefile during import

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: Is it possible to crop a SHAPE file while importing it into GRASS (so, subregion import only)?

A: Yes, easily:

First set the computational region of interest, with

  g.region -p e=<east bound> w=<west bound> n=<north> s=<south>

then simply limit the SHAPE file import to the current region:

  v.in.ogr -r vectmap.shp out=vectmap