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

render highway as broken lines when under a building #2394

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

render highway as broken lines when under a building #2394

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

Comments

@openstreetmap-trac
Copy link

Reporter: Turbodog
[Submitted to the original trac issue database at 9.13pm, Monday, 26th October 2009]

Currently highways are rendered on top of buildings, independent of relative layering. A comment was made on one bug report that this has not been changed because you would not be able to see the path taken by the highway. If this is a concern, or if the rendering sequence is such that buildings are rendered before highways, would it be possible to render the road as broken lines with transparent fill when it passes under the building? The mapper/tagger can break the road into segments so that only the segment under the building is changed if this helps the rendering process.

@openstreetmap-trac
Copy link
Author

Author: jm[at]liotier.org
[Added to the original trac issue at 11.06am, Friday, 27th November 2009]

Another way to look at the problem- a railway station above the tracks : http://osm.org/go/0BPCWjWzC--

area:yes[[BR]]
building:yes[[BR]]
bridge:yes layer:3

And it is not rendered above the default layer railway.

There is definitely a problem with the rendering of buildings over ways.

@openstreetmap-trac
Copy link
Author

Author: Waldo000000
[Added to the original trac issue at 8.46pm, Sunday, 27th December 2009]

I'm surprised that this is "minor" priority. Is it really still not possible to render ways under/through buildings? E.g. a service road through a petrol station: http://www.openstreetmap.org/?lat=-27.697024&lon=153.038597&zoom=18&layers=B000FTF

Or undercover service=parking_aisle's.

The original poster said "A comment was made on one bug report that this has not been changed because you would not be able to see the path taken by the highway."

IMHO even this would be an improvement in the short-term, if it is indeed difficult to render ways as broken lines.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 10.18pm, Sunday, 27th December 2009]

It is not difficult to render broken lines, but it is relatively difficult or computationally intensive to detect when a road intersects a building polygon.

You might want to look into the covered=yes tagging.

@openstreetmap-trac
Copy link
Author

Author: Waldo000000
[Added to the original trac issue at 10.52pm, Monday, 28th December 2009]

I don't think introducing a redundant tag in this case (e.g. covered=yes) to fix a rendering problem is the best solution. And being "relatively difficult" to fix the problem is not a valid reason against fixing the problem.

A post on the tagging list suggested "this may need to be fixed on osm2pgsql to handle this situation": http://lists.openstreetmap.org/pipermail/tagging/2009-December/000975.html

@openstreetmap-trac
Copy link
Author

Author: stanton
[Added to the original trac issue at 10.04pm, Thursday, 16th December 2010]

As a matter of fact, covered=yes does not render as broken lines either. That, however, should not be too difficult to fix (we're doing the same for tunnels already, so why not for covered?).

As for the redundancy of covered=yes - it may be considered a "courtesy tag" to ease the work of the renderer in a fully-mapped inner city, but imagine a gallery on a mountain road, like a tunnel but open on one side. It is not really a building as it sort of blends into the territory on the uphill side, so I wouldn't draw a building outline here (where's the outline on the uphill side?). Nor is it a real tunnel - hence the tag does have a valid raison d'etre.

@openstreetmap-trac
Copy link
Author

Author: bbauer
[Added to the original trac issue at 11.43am, Friday, 3rd June 2011]

see also http://trac.openstreetmap.org/ticket/2825

@openstreetmap-trac
Copy link
Author

Author: dieterdreist
[Added to the original trac issue at 1.23pm, Wednesday, 23rd November 2011]

and see also http://trac.openstreetmap.org/ticket/4103

@openstreetmap-trac
Copy link
Author

Author: math1985
[Added to the original trac issue at 2.10pm, Tuesday, 25th March 2014]

Roads like this should be tagged with tunnel=building_passage. If that is done, they will be rendered correctly. As this is a tagging issue, I will close this ticket.

@openstreetmap-trac
Copy link
Author

Author: Jean-Marc Liotier
[Added to the original trac issue at 3.30pm, Tuesday, 25th March 2014]

covered=yes is also in widespread use and it is a correct way to map this. Request for rendering it in Mapnik is https://trac.openstreetmap.org/ticket/2825

@openstreetmap-trac
Copy link
Author

Author: math1985
[Added to the original trac issue at 3.51pm, Tuesday, 25th March 2014]

Thank you for pointing that out.

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