Skip to content

Converting poligons and swapping/reordering issue #125

@cad0p

Description

@cad0p

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions