Crop a shapefile during import

From GRASS-Wiki
Revision as of 21:00, 27 September 2011 by Neteler (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: -r vectmap.shp out=vectmap