I know this issue has been addressed before with different software, but how do I do it with Shapely?
I have a polygon with a very small gap on the interior of the shape:
Here is a close up:
The polygon is valid so I can't use the buffer trick, and simplifying the polygon also doesn't work.
Best Answer
The thing you are looking at is a sliver geometry. Similar to @sgillies's answer, except use a few buffer parameters to control the chiselled geometry shape:
Note that the fixed
fx
geometry has one less coordinate, which was the dangling sliver. Also note that some of the vertices may have wiggled around from their original position, usually several times less thaneps
.