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

lancelot renaud.lancelot at cirad.fr
Fri Jun 21 19:07:48 CEST 2013


Thank you Roman: gIntersects is what I need.

All the best,

Renaud

Le 21/06/2013 11:39, Roman Luštrik a écrit :
> 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 at cirad.fr
> <mailto:renaud.lancelot at 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 at r-project.org <mailto:R-sig-Geo at 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.

-- 
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