This PR fixes a long-standing bug in TopologyPreservingSimplifier which created incorrect output due to simplified edges "jumping" over components in the input geometry.
The fix handles both polygonal and linear inputs. (Previously, polygonal inputs with "jumps" produced invalid results. Linear inputs produced results whose topology did not match the input).
Before fix
After fix
Fixes #428.
Porting this to GEOS will fix the following issues:
This PR fixes a long-standing bug in
TopologyPreservingSimplifier
which created incorrect output due to simplified edges "jumping" over components in the input geometry.The fix handles both polygonal and linear inputs. (Previously, polygonal inputs with "jumps" produced invalid results. Linear inputs produced results whose topology did not match the input).
Before fix
After fix
Fixes #428.
Porting this to GEOS will fix the following issues: