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 simon04)

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)

comment:1 by KalleLampila, 16 years ago

Cc: KalleLampila added

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 reply to:  1 ; comment:2 by rb706, 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.

in reply to:  2 comment:3 by KalleLampila, 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 simon04, 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:

by simon04, 14 years ago

Attachment: 5017.patch added

comment:5 by simon04, 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).

Note: See TracTickets for help on using tickets.