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

Sort the geojson #12

Open
jayvdb opened this issue Jul 23, 2017 · 2 comments
Open

Sort the geojson #12

jayvdb opened this issue Jul 23, 2017 · 2 comments

Comments

@jayvdb
Copy link
Member

jayvdb commented Jul 23, 2017

GeoJSON extracts from overpass re-order everything, so it is hard to review what is changed, e.g. in #11.

@jayvdb
Copy link
Member Author

jayvdb commented Jul 23, 2017

LD-JSON looks like an interesting way to avoid the line termination problems of GeoJSON.

If there is re-ordering of the shape coordinates, https://github.com/mapbox/geojson-rewind provides a constant order.

@jayvdb
Copy link
Member Author

jayvdb commented Jul 24, 2017

A tool that looks like it will be helpful for this process is Python csvkit.
It converts geojson into csv nicely, but needs a little work to convert the csv back into geojson in a diff-able format. (c.f. wireservice/csvkit#868). The csv can be easily sorted in the middle of this process using normal tools.

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