Haiyong Xu <[EMAIL PROTECTED]> 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 ______________________________________________ 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.