[GRASS-user] Checking if a point (X, Y) is inside the, polygons of a shape file using command line. Solution using R

Rick Reeves reeves at nceas.ucsb.edu
Tue Mar 4 11:45:47 EST 2008


Hamish:

Good point. For a large dataset such as Corrado's, it would be better to 
use GRASS,
once Corrado surmounts the GRASS learning curve. R is a good alternative 
choice
in that it is simpler to use.

Regards, RR

Hamish wrote:
> Rick Reeves wrote:
>   
>> This is a good task for the R programming environment, which has
>> strong geospatial tools and integrates with GRASS:
>>     
>
> FYI, in GRASS's vector library (available outside of C with e.g.
> SWIG-Python) there a number of x-in-polygon functions found in
> lib/vector/Vlib/poly.c. v.buffer uses such a test to check that its
> centroid is inside the new area, you could trace that back if you
> wanted to see the method in use.
>
> from GRASS modules there is v.select and 'v.distance dmax=0' (?) and
> probably other ways too.
>
>
> many roads,
> Hamish
>
>
>
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>
>
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reeves.vcf
Type: text/x-vcard
Size: 339 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20080304/beb13ddd/reeves.vcf


More information about the grass-user mailing list