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

rendering of barrier:cycle_barrier; intersection of linear barrier and way #1982

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

Comments

@openstreetmap-trac
Copy link

Reporter: Cobra
[Submitted to the original trac issue database at 10.14pm, Sunday, 21st June 2009]

When a node tagged barrier:cycle_barrier is placed on a way (most often highway=footway) osmarender renders this quite fine by rotating the symbol right angled to the way.
When there is a fence (barrier:fence) which intersects the way and the common node is tagged barrier:cycle_barrier osmarender rotates the symbol right angled to the fence which makes the barrier look quite strange.
Example: http://www.openstreetmap.org/?mlat=48.05697&mlon=8.45766&zoom=17&layers=0B00FTF

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 8.37am, Monday, 27th July 2009]

From osmarender.xsl:
"Draws a marker on a node that is perpendicular to a way that passes through the node. If more than one way passes through the node then the result is a bit unspecified."

Not all that easy to fix.

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 4.46pm, Thursday, 10th June 2010]

Actually it turns out that the problem is NOT the fence but the way #33468374 which is tagged highway = pedestrian, area = yes. Osmarender basically has no chance to decide if the barrier on node #356309679 should be perpendicular to it or to way #28290129 which is tagged highway = footway.

The solution is to add a node to way #28290129 shortly before node #356309679 and tag that new node with barrier = cycle_barrier. Then remove that tag from the shared node and all is well.

I'll revisit all the bugs marked as duplicated of this bug to check if they suffer from similar problems in the data or if osmarender is wrong.

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