Have you tried functions in `rgeos`, gIntersects` for example? It will
count the number of features that have at least one point in common.

Cheers,
Roman



On Fri, Jun 21, 2013 at 11:35 AM, lancelot <renaud.lancelot@cirad.fr> wrote:

> 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
>
> ______________________________**_________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/r-sig-geo<https://stat.ethz.ch/mailman/listinfo/r-sig-geo>
>



-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

