This package provides two traits for (Multi)Polygon: repair and merge
When running repair, it will try its best to produce a (Multi)Polygon that meets OGC standards. Some very invalid polygons still fail, but most come through as valid with very little change.
The join trait for MultiPolygon will merge all of its Polygons into a single valid Polygon. This may involve a union or the creation of a small bridge between the closes points of non-overlapping Polygons.