-
Notifications
You must be signed in to change notification settings - Fork 3
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
centerline.py crashes with 3D coordinates #1
Comments
OK. Thanks! I will update the code. By the way, I am thrilled that you are giving spiderosm a try. Please Cheers, On Sat, Sep 13, 2014 at 2:08 PM, Asger Skovbo Petersen <
|
For the areas where I can get it to work. It works REALLY well. I believe this tool is going to improve the quality of OSM data (and possibly also the public data) in Denmark a lot. |
Great! Hopefully the unicode issues will not be too difficult to fix. A Cheers, On Sat, Sep 13, 2014 at 3:36 PM, Asger Skovbo Petersen <
|
I've modified centerline.py to discard any z-coordinates in input (with a warning message.) This change has been pushed to the github repo. |
I had to change https://github.com/mharnold/spiderosm/blob/master/centerline.py#L44 into
points = [tuple(l[:2]) for l in part]
to trash Z ordinate. Otherwise the code crashes in a lot of places.
This might not be the right place to actually make sure geometries are 2D, but it worked for me :-)
The text was updated successfully, but these errors were encountered: