[R-sig-Geo] intersection coordinates of two polygons

Adrian.Baddeley at csiro.au Adrian.Baddeley at csiro.au
Tue Dec 8 02:48:02 CET 2009

Mark Trinder <Mark.Trinder at rpsgroup.com> writes:

> Is there a way to output the coordinates of the intersections of two
> polygons? 

In the 'spatstat' package, if A and B are two polygons (objects of class 'owin'
with type 'polygonal') then 
        crossing.psp(as.psp(A), as.psp(B))
returns a point pattern consisting of the intersection points between the edges of the
two polygons. 

Adrian Baddeley

More information about the R-sig-Geo mailing list