Add preserve_topology option to GEOSGeometry.simplify
|Reported by:||Robert Coup||Owned by:||jbronn|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
By default, simplify() does not preserve topology - e.g. polygons can be split, collapse to lines or disappear holes can be created or disappear, and lines can cross.
The attached patch adds a
preserve_topology parameter. If
True (default is
False), the result will have the same dimension and number of components as the input. This is significantly slower.