Closed maxnth closed 2 years ago
Allow automatically simplifying existing polygons using e. g. the Douglas–Peucker algorithm
Very useful indeed. However, I'd recommend against naive implementation of Douglas-Peucker, because that might change the topology and its result may depend on the order / starting-point of the coordinate ring. Shapely offers a preserve_topology option against this. In OCR-D core's PAGE validator (which ensures both self-validity and consistency between parent and child), this is how we deal with it.
merged
This can be closed – thanks @chaddy314!
Allow automatically simplifying existing polygons using e. g. the Douglas–Peucker algorithm