tyrasd / osmtogeojson

convert osm to geojson
http://tyrasd.github.io/osmtogeojson/
MIT License
683 stars 112 forks source link

Converting poligons and swapping/reordering issue #125

Open cad0p opened 3 years ago

cad0p commented 3 years ago

Hi @tyrasd,

I had to solve the issue of converting polygons of boundaries for municipalities but I was writing in Python, so I'm sharing here my solution for the need of swapping and reordering Polygons: https://gist.github.com/cad0p/463c805d93f48351d824e46cb8c98af6

I did not create a copy of the json, so this may be useful given your comments here: https://github.com/tyrasd/osmtogeojson/blob/e05ddb01942758bcdc14c782c7e9b0e17eb9dfa4/index.js#L190-L191

arenzano_bad rapallo_bad

Let me know!