Proposal:Default layer for bridge and tunnel

From OpenStreetMap Wiki
Latest comment: 15 years ago by Oli-Wan
Jump to navigation Jump to search
default layer value for bridge and tunnel
Proposal status: Rejected (inactive)
Proposed by: Canabis
Tagging: bridge, tunnel, layer=-1, 1
Applies to: node, way
Definition: Set default layer=1 for bridge=yes and layer=-1 for tunnel=yes
Statistics:

Draft started: 2010-12-11
RFC start: 2010-12-15
Vote start: 2011-01-11
Vote end: 2011-01-25

Proposal

This was already discussed with no results. I propose to introduce default layer value for bridge=yes and tunnel=yes. Those will be layer=1 and layer=-1 respectively. All other elements will stay as is, i.e. with layer=0 by default.

Rationale

  1. Only 72.7% of the objects tagged with bridge=yes have layer=* tag
  2. Among these objects 95.5% use layer=1
  3. Other 4.3% use layer > 1
Some of the objects which are tagged with bridge=yes contain incorrect tags, for example, later=1, layer=!, layer=01, layer=a, layer=level1, layer=one, layer=q1, layere=1, layers=+1
  1. Only 69.3% of the objects tagged with tunnel=yes have layer=* tag
  2. Among these objects 94.7% use layer=-1
  3. Other 4.1% use layer < -1 and 1.1% use layer > 0
Some of the objects which are tagged with tunnel=yes contain incorrect tags, for example, layer=.1, layer=.-1, layer=/1, layer=1-, layer=-1#, layer=layer
  • The mentioned statistics shows that tag layer=* is often omitted for bridges and tunnels. There is a chance that it is not set even for the bridges and tunnels that cross other ways. This leads to uncertainty and with current approach without default layer value often indicates an error in mapping. See #Examples.
  • Why should we put efforts in defining facts which are obvious in majority of cases? And when there is an exception it could always be clarified. Bridge with layer=1 is just like water=yes + color=colorless. Of course, water could be white, red, and of many other colors. But the vast majority of water is colorless, and who would care to search some colorless water? If you're searching for a white water, you say: find me some white water. Same rationale makes it redundant to specify that a bridge is above the ground and tunnel is under the ground.
  • Specifying layer=1 and layer=-1 respectively for bridge=yes and tunnel=yes increases the amount of data that leads to redundancy.

Examples

Uncertainties with bridges without layer=*:

  1. http://osm.org/go/uo83f6g9A--
  2. http://osm.org/go/ZVJf3DP7h--
  3. http://osm.org/go/ZVJSKTegG--

And many other.

Uncertainties with tunnels without layer=*:

  1. http://osm.org/go/0CFKZeNw
  2. http://osm.org/go/kagX5R8
  3. http://osm.org/go/euro4JUQx--

And many other.

Tagging

For mapping a bridge, use just bridge=yes without layer=1. If the default value of layer=1 is not suitable (there are already layers defined at the same cross), add layer=0/2...4 or even -1...-4.

For mapping a tunnel, use just tunnel=yes without layer=-1. If the default value of layer=-1 is not suitable (there are already layers defined at this spot), add layer=0/-2...-4 or even 1...4.

Applies to

node way, probably to area.

Rendering

Renderers should draw objects with bridge=yes tag but without layer=* tag, as if they had layer=1, and tunnel=yes assumes layer=-1 as default value.

Today many renderers already draw bridges over and tunnels under other objects by default.

Features/Pages affected

  1. Layer
  2. Key:layer
  3. Bridge
  4. Tunnel
  5. Relations/Proposed/Bridges and Tunnels
  6. JOSM/Validator
  7. Renderers: Osmarender, Mapnik, etc.
  8. Category:Outputs: GPS Maps From OSM Data, OSM Map On Garmin, etc.

Maybe more?

Comments

Please discuss and comment at Talk.

Voting

Wiki tip: Type {{vote|yes/no}} to approve/oppose this proposal, type 4 tildes like: ~~~~ to sign your user name & date. You can add a short comment, but please use the talk page where appropriate.

Voting has ended 2011-01-25. The votes are 37 opposed, 18 approval and 2 indifferent. The result is rejected.