Opened 16 years ago
Last modified 14 years ago
#5017 closed enhancement
[Patch needs review] new check: ways tagged with bridge=yes but without highway — at Version 5
| Reported by: | rb706 | Owned by: | team |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Core validator | Version: | |
| Keywords: | Cc: | KalleLampila |
Description (last modified by )
Bridges tagged with bridge=yes, but without a highway tag (unclassified, track, ...) will be ignored by routing software. The JOSM validator should warn about such ways.
see also http://forum.openstreetmap.org/viewtopic.php?id=7512
Change History (6)
follow-up: 2 comment:1 by , 16 years ago
| Cc: | added |
|---|
follow-up: 3 comment:2 by , 16 years ago
Replying to Kalle Lampila:
Bridge is not only to relaeted in higways. Example with railway you can use bridge tag.
I suggest general approach here. Make list tags that should not exist alone (ex. bridge, name, lit, surface, maxspeed...) and give warning if there is only this kind of tags.
In my case, this would not have prevented me from making the change. I created a bridge with bridge=yes and layer=1, so there was an additional tag (the layer tag) in my change besides "bridge".
The check should make sure that a bridge does not interrupt a highway (railway, ...). This way it now also has been implemented in keepright.
comment:3 by , 16 years ago
Replying to rb706:
I suggest general approach here. Make list tags that should not exist alone (ex. bridge, name, lit, surface, maxspeed...) and give warning if there is only this kind of tags.
In my case, this would not have prevented me from making the change. I created a bridge with bridge=yes and layer=1, so there was an additional tag (the layer tag) in my change besides "bridge".
No this is not true. Both bridge and layer are tags that should not exist alone, so general solution catch up this situation. (it also catch up situation if there is only layer tag in way)
comment:4 by , 15 years ago
From http://forum.openstreetmap.org/viewtopic.php?id=7512:
Unterbricht eine Brücke den highway (und meinetwegen railway/waterway), der an sie anschließenden Wege, dadurch, dass das highway-(railway/waterway) Attribut fehlt, dann ist das höchstwahrscheinlich ein Fehler.
We have a few options to deal with these bugs:
- list some tags (like
lit,bridge, …) which have to used together withhighway/railway/waterway. - restrict to
bridgeand consider http://taginfo.openstreetmap.org/search?q=bridge - (rely on external tools like keepright: http://keepright.ipax.at/report_map.php?&layers=B00T)
by , 14 years ago
| Attachment: | 5017.patch added |
|---|
comment:5 by , 14 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | new check: ways tagged with bridge=yes but without highway → [Patch needs review] new check: ways tagged with bridge=yes but without highway |
Patch attached. Testing for typical tag combinations which were derived from the taginfo database (SQL code included as source code comment).



Bridge is not only to relaeted in higways. Example with railway you can use bridge tag.
I suggest general approach here. Make list tags that should not exist alone (ex. bridge, name, lit, surface, maxspeed...) and give warning if there is only this kind of tags.