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

_______________________________________________
grassuser mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grassuser

Reply via email to