osmlab / osmlint

An open source suite of js validators for OpenStreetMap data, to identify common geometry and metadata problems at scale.
ISC License
84 stars 10 forks source link

[Validator] Polygon self-intersecting #164

Open Rub21 opened 7 years ago

Rub21 commented 7 years ago

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

defvol commented 7 years ago

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 commented 7 years ago

turf.kinks will do the trick