Message: 32
Date: Thu, 5 Feb 2009 14:51:36 +0000
From: baptiste auguie
Subject: Re: [R] maptools: Test if point is in polygon
To: Aleksandr Andreev
Cc: "r-help at r-project.org"
Message-ID:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
I don't know about the maptools package but one general way to do this
would be to compute the convex hull (?chull) of the augmented set of
points and test if the point belongs to it.
On 5 Feb 2009, at 13:21, Aleksandr Andreev wrote:
In R's maptools package, is there a built-in function to test if a
given point is "inside" a given polygon on the map? The map was
loaded from an ESRI Shapefile. The point's latitude and longitude are
known.
Thank you!
Aleks
--
------------------------
Aleksandr Andreev
Fulbright Fellow
Graduate School of Management
St Petersburg State University