pyguymer3.geo.cleanSrc.clean_MultiPolygon¶
- pyguymer3.geo.cleanSrc.clean_MultiPolygon(multipoly, /, *, debug=True, prefix='.', tol=1e-10)[source]¶
Clean a MultiPolygon
This function cleans a MultiPolygon, made up of Polygons (with an exterior and any number of interiors), by removing bad points.
- Parameters:
- Returns:
cleans – the cleaned MultiPolygon
- Return type:
shapely.geometry.multipolygon.MultiPolygon
Notes
According to the Shapely documentation for the function shapely.geometry.polygon.orient() :
“A sign of 1.0 means that the coordinates of the product’s exterior ring will be oriented counter-clockwise.”
Copyright 2017 Thomas Guymer [1]
References