Skip to content
Prev 2928 / 29559 Next

point.in.polygon() on massive datasets

overlay for points in polygons is a wrapper around point.in.polygon, the 
same that is used in gstat. What I miss in the R code (and C source 
code) is e.g. the checking on the bbox, whether the point is within the 
bounding box of a polygon, although the bbox is computed.

It would of course speed things up increadibly when using tree indexes, 
either on the points or on the polygons, or preferably both, but this is 
currently not in the sp code. A nice student project!
--
Edzer

Barry Rowlingson schrieb: