| | 17 | |
| | 18 | 6. It doesn't find two railways that cross each other without the crossing node being an end node of either railway road |
| | 19 | |
| | 20 | |
| | 21 | Just a quick thought, but can't it be simplified to: |
| | 22 | {{{#!mapcss |
| | 23 | way[railway][railway!~/^(turntable|traverser|roundhouse|workshop|platform)$/] > node[/railway$/!~/^(switch|railway_crossing)$/][count(parent_osm_primitives("railway")) > 2]:connection, |
| | 24 | way[railway][railway!~/^(turntable|traverser|roundhouse|workshop|platform)$/] >[index!=1][index!=-1] node[/railway$/!~/^(switch|railway_crossing)$/][count(parent_osm_primitives("railway")) == 2]:connection { |
| | 25 | set missing_switch_railwaycrossing; |
| | 26 | } |
| | 27 | node.missing_switch_railwaycrossing { |
| | 28 | throwError: tr("Railways connection node without {0} or {1}", "railway=switch", "railway=railway_crossing"); |
| | 29 | group: tr("missing tag"); |
| | 30 | } |
| | 31 | }}} |
| | 32 | (This doesn't fix the item at 2 yet, which requires filtering on the counted parent tags). |