Skip to content

overlap between shapefiles

3 messages · Karla Shikev, MacQueen, Don, Philippi, Tom

#
Dear all,

I'd like to take two shapefiles and to calculate the area of overlap based
on some world projection. Any suggestions about possible functions?

Thanks!

Karla
#
In the rgeos package there are  gIntersects() and gIntersection(), that
might be enough to get you started.

-Don
#
To add to Don's recommendation, after you have the 3rd SpatialPolygons
object of the overlap or intersection, you may need to spTransform() them
to a projection where area makes sense, then use rgeos::gArea to compute
the areas.  Which projections to use depends on the spatial scale and
general location of your rangemaps: there is no single best answer.

Tom 2
On Fri, May 8, 2015 at 12:10 PM, MacQueen, Don <macqueen1 at llnl.gov> wrote: