[R] polygon overlapping
adrian at maths.uwa.edu.au
adrian at maths.uwa.edu.au
Thu Oct 18 02:58:14 CEST 2007
Haiyong Xu <xuhy at ucla.edu> writes:
> Is there any package which can calculate the overlapping area of two
> polygons or output the coordinates of the overlapping of two polygons?
The function overlap.xypolygon(A,B) in package 'spatstat' calculates the
area of overlap between two polygons A and B (not necessarily convex). The
format for A and B is list(x,y) where x and y are coordinate vectors of
the polygo vertices, traversed in anticlockwise order.
Adrian Baddeley
More information about the R-help
mailing list