Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting poligons and swapping/reordering issue #125

Open
cad0p opened this issue Jul 8, 2021 · 0 comments
Open

Converting poligons and swapping/reordering issue #125

cad0p opened this issue Jul 8, 2021 · 0 comments

Comments

@cad0p
Copy link

cad0p commented Jul 8, 2021

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:

osmtogeojson/index.js

Lines 190 to 191 in e05ddb0

// create copies of individual json objects to make sure the original data doesn't get altered
// todo: cloning is slow: see if this can be done differently!

arenzano_bad
rapallo_bad

Let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant