Anyone know of an algorithm or toolkit for python3 which I can use to combine touching 2D polygons in one polygon? Where the polygon is defined in terms of the lines that define its outer and indeed inner boundaries (A donought, for example, has an inner boundary to define its hole).
Before:

After:

In my case however I begin with equal sized squares (polygons) which I need to combine into larger polygons.
Thanks,
Barry
It looks like the General Polygon Clipper library might do what you’re looking for.