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

Error adding railway layer #8

Open
Chaz6 opened this issue Aug 25, 2021 · 4 comments
Open

Error adding railway layer #8

Chaz6 opened this issue Aug 25, 2021 · 4 comments

Comments

@Chaz6
Copy link

Chaz6 commented Aug 25, 2021

I added 'railway': {}' to my config, and it results in the error NotImplementedError: Multi-part geometries do not themselves provide the array interface. I have also tried 'railway': {'custom_filter': '["railway"~"rail"]'} and it gives ValueError: Found no graph nodes within the requested polygon. I have tested it without railway to ensure the output area does indeed contain a line with railway=rail.

@peterdsharpe
Copy link

peterdsharpe commented Aug 26, 2021

Confirming that this same NotImplementedError error occurs when adding waterways via 'waterway': {}.

These problems seem related based on handling in get_streets(); please let me know if you find a fix!

@asmunder
Copy link

I've finally gotten railways to display using the custom_filter way, but only after putting a large value for dilation, e.g.

'railway':{'custom_filter': '["railway"~"rail|light_rail"]', 'dilate':2000}

@Chaz6
Copy link
Author

Chaz6 commented Aug 27, 2021

'railway':{'custom_filter': '["railway"~"rail|light_rail"]', 'dilate':2000}

Thank you for the suggestion! Unfortunately this did not work for me. I tried increasing the value of dilate to 4000, and it gave this error:-

networkx.exception.NetworkXPointlessConcept: Connectivity is undefined for the null graph.

@henrimh
Copy link

henrimh commented Sep 1, 2021

I'm just testing out the demo, and was wondering too why the railways weren't working.

I got them to work with the custom filter above, plus with dilate number 200. If it matters, my target was Riihimäki, Finland.

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

4 participants