See function pip (point in polygon) in package splancs.

Renaud

2009/2/5 Rainer M Krug <r.m.k...@gmail.com>

> On Thu, Feb 5, 2009 at 3:21 PM, Aleksandr Andreev
> <aleksandr.andr...@gmail.com> wrote:
> > In R's maptools package, is there a built-in function to test if a
> > given point is "inside" a given polygon on the map?  The map was
> > loaded from an ESRI Shapefile. The point's latitude and longitude are
> > known.
>
> If everything else fails, convert the shape file into a raster and
> "drill down" at the location of the points.
>
> Rainer
>
> >
> > Thank you!
> >
> > Aleks
> >
> > --
> > ------------------------
> > Aleksandr Andreev
> > Fulbright Fellow
> > Graduate School of Management
> > St Petersburg State University
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology, UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Faculty of Science
> Natural Sciences Building
> Private Bag X1
> University of Stellenbosch
> Matieland 7602
> South Africa
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Renaud LANCELOT
Département Systèmes Biologiques du CIRAD
CIRAD, Biological Systems Department

Campus International de Baillarguet
TA 30 / B
F34398 Montpellier
Tel   +33 (0)4 67 59 37 17
Secr. +33 (0)4 67 59 37 37
Fax   +33 (0)4 67 59 37 95

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to