[R] basic spatial query

Rolf Turner r.turner at auckland.ac.nz
Mon Jan 28 20:22:58 CET 2008


On 28/01/2008, at 11:14 PM, jgarcia at ija.csic.es wrote:

> Hello;
> Please coud you advise me of a simple way to select points (x,y
> coordinates) that fall within a polygon.
> I've got a set of polygons, each one defined by an arbitrary number of
> points, and several points inside each polygon.
> I know this is simple with a GIS, but I'd rather do it inside R.

You could convert the polygon to an owin object and use inside.owin()
in the spatstat package.

You could also use the undocumented spatstat function inside.xypolygon 
().

	cheers,

		Rolf Turner


######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list