[R-sig-Geo] Number of polygons between 2 points

lancelot renaud.lancelot at cirad.fr
Fri Jun 21 11:35:03 CEST 2013


Dear all,

I have a large layer of many spatial polygons (several thousands): class 
SpatialPolygons.

I have another layer of spatial points (several tenths): class 
SpatialPoints.

I would like to count the number of these polygons crossed by a straight 
line joining each pair of points.

Any hint?

Thank you very much in advance.

All the best,

Renaud

-- 
Renaud Lancelot
Directeur adjoint / Deputy director
CIRAD, UMR CMAEE, Campus International de Baillarguet TA A-DIR / B
F34398 Montpellier - http://umr-cmaee.cirad.fr/

Head of epidemiology team
EDENext Project, coordinator: http://www.edenext.eu/

Tel.  +33 4 67 59 37 17  -  Fax  +33 4 67 59 37 98
Secr. +33 4 67 59 37 37  - Cell. +33 6 77 52 08 69



More information about the R-sig-Geo mailing list