I have two Polygons
which intersect along one edge as shown below.
I need to add the red vertices at each end of the intersection to the blue polygon. I thought I could do this with by calling union
on the Polygon
and the LineString
produced by intersection
of the two polygons but it appears not.
Is there a way of doing what I need to do?
Best Answer
You can use the properties of
union
(andunary_union
) witch split all the lines at intersections (Planar graph)and