I have two shapes which are adjacent as in image A below. How can I add the left-hand red point to the blue polygon (poly1
) and the right-hand red point to the grey polygon (poly2
)? The idea is that both shapes will then share a line segment defined by those two points.
I can find the LineString
which is the intersection by calling poly1.intersection(poly2)
but I don't know how to add the missing point or points (as would be required in the situation below in image B).