prettymaps icon indicating copy to clipboard operation
prettymaps copied to clipboard

Error adding railway layer

Open Chaz6 opened this issue 4 years ago • 4 comments

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.

Chaz6 avatar Aug 25 '21 19:08 Chaz6

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!

peterdsharpe avatar Aug 26 '21 18:08 peterdsharpe

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}

asmunder avatar Aug 26 '21 19:08 asmunder

'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.

Chaz6 avatar Aug 27 '21 09:08 Chaz6

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.

henrimh avatar Sep 01 '21 14:09 henrimh