-
Notifications
You must be signed in to change notification settings - Fork 1
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
Relation parsing #3
Comments
No problem; I don't mind a little code review and so far all you are Relations are ugly and the reason I kept the members array is because it You will need the correct order to reconstruct multi polygons correctly. To I had a go at this problem a few months ago and you can find some of that Have a look at the processRelation in the now removed OsmBlobProcessor and I'd really appreciate a pull request for this one. Jilles On Tue, Sep 17, 2013 at 12:04 PM, Peter notifications@github.com wrote:
|
Also, if you want admin boundaries, have a look at quatro shapes as well. OSM doesn't have good coverage for this. |
Thanks a lot for all the hints! Also for the quatro shapes one!
Yeah, I can now see what you mean+describe ;), but I think I'll for now just try the admin boundaries ignoring the other relations. I'm closing here for now and will hopefully come up with a working version for it and create a PR. |
-> Ups, wrong project. Issue should be here https://github.com/jillesvangurp/osm2geojson |
How convert OSM relation to GeoJSON -based on relation member's roles` try {
I just want to convert OSM data to GeoJSON where it is pretty simple with node and way tags of OSM data, but relation which is giving complex can't find the logic to convert OSM relation to GeoJSON format, especially how to form coordinates parameter of GeoJSON based on their relation member roles (ex. Inner, outer,admin_centre,riverbank,side_stream,main_stream,from,via,to,forward,backward,stop_entry_only,stop_exit_only and platform_exit_only). I am expecting the logic behind the conversion of the relation tags from OSM to GeoJSON and sample code for that. |
I never figured out the relations and I've not worked on this for six years. Good luck figuring this out. |
Hi,
sorry for my issue bombing, hope all will be clear in a few days ;)
I'm in the process of implementing relation parsing as I need the administration boundaries. Why would I need the members json array? Isn't this information already included in the 'ways' and 'nodes' key?
The text was updated successfully, but these errors were encountered: