On Tue, Sep 27, 2011 at 1:08 PM, Micha Silver <mi...@arava.co.il> wrote:
> On 27/09/2011 13:31, giannis Nj wrote:
>
> Hi,
>
> is it possible to crop a shapefile at some coordinates inside grass? I have
> a bigger area than what i want and i must limit the boundaries of this in
> some coordinates. If it isn't possible, any other program (open source of
> course) to do this job and then import the limited file in grass?
>
>
> In GRASS it can be done with 2 steps:
> First set the current region to the boundaries of the smaller region with
> g.region:
> g.region -p e-<east bound> w=<west bound> n=<north> s=<south>
> Now create a polygon of the region extents:
> v.in.region out=small_region
> and finally with v.overlay you can clip the original to the smaller region:
> v.overlay ain=<original shape> bin=small_region out=clipped_shape

Or easier, set the cimputational region with e.g.:
g.region -p e-<east bound> w=<west bound> n=<north> s=<south>

then limit shapefile import to the current region:

v.in.ogr -r ...

Markus M
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to