[R] GIS operations
Rolf Turner
rolf.turner at xtra.co.nz
Tue Dec 20 22:53:21 CET 2011
On 21/12/11 01:54, Antonio Rodriges wrote:
> Hello,
>
> Is there a way to find points in SpatialPoints which lie inside a given Polygon?
You could try:
* load package "spatstat"
* convert your SpatialPoints object to an object of class "ppp"
* convert your polygon to an object of class "owin"
* use inside.owin()
See
vignette("shapefiles")
for instructions on how to do the aforementioned conversion.
cheers,
Rolf Turner
More information about the R-help
mailing list