kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

Broken polygon winding detection #86

Closed kekscom closed 8 years ago

kekscom commented 9 years ago

http://osmbuildings.org/?lat=52.52257&lon=13.33810&zoom=19

AbelVM commented 8 years ago

Maybe: https://github.com/Turfjs/turf-rewind

kekscom commented 8 years ago

I'll give it a try. Thanks

kekscom commented 8 years ago

Tested but no success. From what I see on osm.org ist not mapped properly. The inner polygon seems to be a standalone building.

However, I'll keep Turf's code as it is more compact than mine. Thanks