Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

railway=tram does not render on roads tagged with bridge=yes with Mapnik #936

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 9 comments

Comments

@openstreetmap-trac
Copy link

Reporter: lakeyboy
[Submitted to the original trac issue database at 10.35pm, Wednesday, 28th May 2008]

At the moment, tagging a road with railway=tram, it will render a solid greyish line down the middle of the road, but when the road is tagged with bridge=yes and railway=tram, the bridge renders while the tram line does not. I'm not sure if this is because of conflicting code or that this type of combination is not registered by the Mapnik code.

@openstreetmap-trac
Copy link
Author

Author: grand.edgemaster[at]gmail.com
[Added to the original trac issue at 9.43am, Thursday, 29th May 2008]

railway=tram conflicts with the highway= tag, where possible you should create a new way running over the top of the road way.
Although this may seem illogical at first (the tram runs down the road) from a data point of view, tags that apply to the road do not completely apply also to the tram.

(Plus the behaviour of using multiple top-level tags on a single object is generally undefined)

@openstreetmap-trac
Copy link
Author

Author: steve8[at]mdx.ac.uk
[Added to the original trac issue at 7.34pm, Saturday, 7th June 2008]

Can you point me to an example, so I can investigate?

@openstreetmap-trac
Copy link
Author

Author: lakeyboy
[Added to the original trac issue at 12.27pm, Wednesday, 11th June 2008]

Here is an example of it in practice. Princes Bridge in central Melbourne, Australia.

[http://www.openstreetmap.org/?lat=-37.81953&lon=144.96803&zoom=17&layers=B00FT]

@openstreetmap-trac
Copy link
Author

Author: lakeyboy
[Added to the original trac issue at 12.31pm, Wednesday, 11th June 2008]

I'll just add to this. I have also discovered that a bridge will not render even if the only tags attatched to the way are railway=tram and bridge=yes. As above, the tram line renders, but the bridge does not. Example here in St Kilda, Melbourne, Australia.

[http://www.openstreetmap.org/?lat=-37.85586&lon=144.98287&zoom=17&layers=B00FT]

@openstreetmap-trac
Copy link
Author

Author: rhomeo
[Added to the original trac issue at 11.06am, Saturday, 21st June 2008]

I can confirm the bug. Another example can be found here: http://www.openstreetmap.org/?lat=47.55989&lon=7.58983&zoom=17&layers=B00FT "Mittlere Bcke".

@openstreetmap-trac
Copy link
Author

Author: steve8[at]mdx.ac.uk
[Added to the original trac issue at 7.22pm, Wednesday, 25th June 2008]

Trams brought above all roads, so they show on the road when it goes on bridge.
However, I see from 2nd example that there needs to be an instance included of tram+bridge that is NOT on a road. Will try that later.

@openstreetmap-trac
Copy link
Author

Author: michal[at]feix.cz
[Added to the original trac issue at 6.25pm, Monday, 5th April 2010]

I've made a small patch to address this issue. As I don't have R/W access to repository, I'm attaching my diff. It still keeps trams above all bridges but also solves bug with trams beeing drawn over every road on map, even over elevated ones.

@openstreetmap-trac
Copy link
Author

Author: clockwerx
[Added to the original trac issue at 10.23pm, Sunday, 20th October 2013]

gravitystorm/openstreetmap-carto#167

@openstreetmap-trac
Copy link
Author

Author: clockwerx
[Added to the original trac issue at 10.24pm, Sunday, 20th October 2013]

Shifting to above issue. The patch is obviously a bit stale now; but the essence of it might be suitable to turn into a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant