[GRASS-user] How to find all vectors that overlay a given region

Hamish hamish_nospam at yahoo.com
Wed Sep 19 07:36:26 EDT 2007


Michael Barton wrote:

> Running v.info will give you the extents of a vector file. You can parse
> this and compare the extents to the region extents to see if they overlap.
> 
> You could also use the approach I gave for finding the intersection of 2
> raster maps.
> 
> parse g.region -ugp vect=vector1
> parse g.region -ugp vect=vector2
> 
> compare the extents of the regions defined by the vectors with extents of
> the current region 
> 
> parse g.region -ugp

beware the case where the bounding boxes overlap but the vector features within
do not. 


Hamish



       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC




More information about the grass-user mailing list