[R-sig-Geo] Finding polygons corresponding to points

Karl Ove Hufthammer karl at huftis.org
Mon Nov 9 13:55:21 CET 2009


On Mon, 9 Nov 2009 13:27:16 +0100 (CET) Roger Bivand 
<Roger.Bivand at nhh.no> wrote:

> > For each point, I need to find the corresponding polygon. You can think
> > of the points as positions of for example earthquakes, and the polygons
> > as state or country borders. For each earthquake, I need to calculate
> > the state/country where the earthquake occured.
>
> Try the relevant overlay() methods in sp. They ought to be fast enough:

Wonderful. Thank you so much.

-- 
Karl Ove Hufthammer



More information about the R-sig-Geo mailing list