You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a set of polygons that I simplify.
Then I compute the union of this simplification with its original version.
I have some case when the following error occurs:
{ Error
at TopologyException.RuntimeException [as constructor] (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:24925:19)
at new TopologyException (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:30875:25)
at DirectedEdgeStar.propagateSideLabels (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:35610:43)
at DirectedEdgeStar.computeLabelling (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:35711:8)
at DirectedEdgeStar.computeLabelling (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:35977:47)
at OverlayOp.computeLabelling (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:40900:23)
at OverlayOp.computeOverlay (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:40838:10)
at OverlayOp.getResultGeometry (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:40812:10)
at Function.OverlayOp.overlayOp (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:40935:20)
at SnapIfNeededOverlayOp.getResultGeometry (C:\Users\gdrouet\Documents\nomotech\node_modules\@turf\turf\turf.js:39762:24)
name: 'TopologyException',
message: 'side location conflict',
stack: 'Error\n at TopologyException.RuntimeException [as constructor] (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:24925:19)\n at new TopologyException (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:3
0875:25)\n at DirectedEdgeStar.propagateSideLabels (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:35610:43)\n at DirectedEdgeStar.computeLabelling (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:35711:8)\n
at DirectedEdgeStar.computeLabelling (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:35977:47)\n at OverlayOp.computeLabelling (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:40900:23)\n at OverlayOp.comp
uteOverlay (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:40838:10)\n at OverlayOp.getResultGeometry (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:40812:10)\n at Function.OverlayOp.overlayOp (C:\\Users\\g
drouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:40935:20)\n at SnapIfNeededOverlayOp.getResultGeometry (C:\\Users\\gdrouet\\Documents\\nomotech\\node_modules\\@turf\\turf\\turf.js:39762:24)',
pt: Coordinate { x: -1.2767639133054933, y: 48.63582536868326, z: undefined } }
I confirm that if I unkink the simplified polygons and then compute the union of all the resulting polygons with the original version, I obtain a valid workaround.
Thanks for the detailed report @gdrouet , we aware that our union function doesn't handle self intersecting polygons very well, it currently relies on the jsts library, but we write close to replacing this dependency with something that does, so stay tuned!
I have a set of polygons that I simplify.
Then I compute the union of this simplification with its original version.
I have some case when the following error occurs:
Ex 1:
Ex 2:
Ex 3:
Ex 4:
Ex 5:
You can see that simplified polygons are kinked, maybe this is linked.
The text was updated successfully, but these errors were encountered: