Hi,

What R package provides a way to determine if a longitude/latitude
coordinate is situated inside a closed, complex spherical polygon (i.e., a
point inside a polygon on Earth's surface)?

For example:

p <- rbind( c(-123.4447,48.5146), c(-123.3171,48.5128),
c(-123.2607,48.4108), c(-123.4018,48.4099), c(-123.4447,48.5146) )

ll <- c(-123.3501,48.4902)

print( isInside( ll, p ) )

I have looked at the following packages:

   - geosphere
   - GEOmap

I could not find anything else at CRAN that looked suitable.

A good article on the subject is at:

trs-new.jpl.nasa.gov/dspace/bitstream/2014/40409/1/07-03.pdf

Thank you!
Dave

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to