osmlint icon indicating copy to clipboard operation
osmlint copied to clipboard

[Validator] Polygon self-intersecting

Open Rub21 opened this issue 9 years ago • 3 comments

Rub21 avatar Nov 21 '16 11:11 Rub21

Exmaple http://www.openstreetmap.org/way/443379147, I think this should be general.

Rub21 avatar Nov 23 '16 14:11 Rub21

We can easily spot these polygons by looking at the number of edges per node, i.e. edges > 2 then flag.

screen shot 2016-11-23 at 10 48 58 am

defvol avatar Nov 23 '16 15:11 defvol

turf.kinks will do the trick

defvol avatar Nov 23 '16 17:11 defvol