Changes between Initial Version and Version 1 of Ticket #20742, comment 35


Ignore:
Timestamp:
2021-09-17T20:26:52+02:00 (4 years ago)
Author:
Famlam

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20742, comment 35

    initial v1  
    22>
    33> Something like this?
    4 > {{{
    5 > #!rule
    6 > way[highway=~/^(footway|path|bridleway|cycleway|service)$/] > node[barrier]:connection {
    7 >       set .barrierSmallRoadConnection;
    8 > }
    9 > /* 20742; warnings for major roads set by other rule, also issue 20742 */
    10 > way[highway=~/^(unclassified|residential)$/] > node[barrier][barrier!=bollard][!access][!access:conditional][!vehicle][!vehicle:conditional][!motor_vehicle][!motor_vehicle:conditional].barrierSmallRoadConnection {
    11 >       throwWarning: tr("Suspicious {0} on a connection of a small highway with a larger highway", "{0.tag}");
    12 >       set .hasWarningForBarrierOnWay;
    13 > }
    14 > way[highway=~/^(unclassified|residential)$/] > node[barrier].barrierSmallRoadConnection!.hasWarningForBarrierOnWay {
    15 >       throwOther: tr("Suspicious {0} on a connection of a small highway with a larger highway", "{0.tag}");
    16 > }
    17 > }}}
     4> [EDIT FAMLAM: I cut the code out to make sure the correct one is copied]
    185
    196Has this been tested? I can test some of this and add it to the patch.