Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#19747 closed enhancement (fixed)

Add railway=rail electrification checks

Reported by: gaben Owned by: team
Priority: normal Milestone: 20.09
Component: Core validator Version:
Keywords: Cc:

Description

Ways tagged with railway=rail + electrified=no

combined with electrification tags frequency=* or voltage=* should be warned about.

Overpass query gives about 3250 ways globally.

Attachments (0)

Change History (10)

comment:1 by gaben, 4 years ago

railway=rail is the most used tag, but there are a few more:

  • construction
  • disused
  • funicular
  • light_rail
  • miniature
  • monorail
  • narrow_gauge
  • preserved
  • rail (already mentioned)
  • subway
  • tram

I know @Klumbumbus doesn't like huge rules because of performance reasons, but may worth mentioning :D (Overpass returns ~3800 ways, 550 more)

comment:2 by Famlam, 4 years ago

I know @Klumbumbus doesn't like huge rules because of performance reasons, but may worth mentioning :D (Overpass ​returns ~3800 ways, 550 more)

wouldn't the rule just be:

way[railway][electrified=no][frequency],
way[railway][electrified=no][voltage] {...}

i.e. without having to specify the railway tags?

comment:3 by Klumbumbus, 4 years ago

Milestone: 20.09

comment:4 by gaben, 4 years ago

Can be, but it will include in the check map features like crossings, buildings (ie. roundhouse), stations, stops and so on. Edge cases always possible, but currently there aren't any of them in the OSM database :)

Just to have a full list, with overpass I found a few more mistagged objects:

  • abandoned (these may be excluded because the deployed systems probably will not change and worth having the information, 180 occurrences)
  • loading_gauge (OK, 1 occurrence)
  • pit (OK, 1 occurrence)
  • proposed (the warning will be a bit misleading, but OK, 15 occurrences)
  • razed (shouldn't have any electrification tags at all?, 21 occurrences)
  • track_scale (OK, 1 occurrence)
  • waste_disposal (OK, 1 occurrence)

in reply to:  4 ; comment:5 by Famlam, 4 years ago

Replying to gaben:

Can be, but it will include in the check map features like crossings, buildings (ie. roundhouse), stations, stops and so on.

These features wouldn't have the electrified tag, would they? And if they do, electrified=no with frequency or voltage would still be suspicious combinations. (p.s. crossings are nodes and thus not matched by a way selector ;) )

in reply to:  5 ; comment:6 by gaben, 4 years ago

Replying to Famlam:

These features wouldn't have the electrified tag, would they? And if they do, electrified=no with frequency or voltage would still be suspicious combinations. (p.s. crossings are nodes and thus not matched by a way selector ;) )

Yup, true. Just the warning will be a bit odd. JOSM users are probably professional enough to recognize what the devs intended :D

in reply to:  6 ; comment:7 by skyper, 4 years ago

Replying to gaben:

Replying to Famlam:

These features wouldn't have the electrified tag, would they? And if they do, electrified=no with frequency or voltage would still be suspicious combinations. (p.s. crossings are nodes and thus not matched by a way selector ;) )

Yup, true. Just the warning will be a bit odd. JOSM users are probably professional enough to recognize what the devs intended :D

What is wrong with Suspicious tag combination: {0.tag} together with {1.tag} and {2.tag}

Is it worth to leave out voltage=0?

in reply to:  7 comment:8 by gaben, 4 years ago

Replying to skyper:

What is wrong with Suspicious tag combination: {0.tag} together with {1.tag} and {2.tag}

We are talking about edge cases, it's fine.

Is it worth to leave out voltage=0?

I think no because voltage=0 means there is some sort of electrification (equipment is there), but currently isn't working. So electrified=no + voltage=0 is a suspicious combination. At least this is what I can came up with. Anyway, it affects only 5 ways in the whole database (4017 vs 4022).

comment:9 by Klumbumbus, 4 years ago

Resolution: fixed
Status: newclosed

In 17025/josm:

fix #19747 - Warn about electrified=no together with voltage or frequency on railway ways, add frequency=25 to presets

comment:10 by Klumbumbus, 4 years ago

In 17026/josm:

see #19747 - Fix sorting of frequency values in presets

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.