Changes between Version 18 and Version 19 of Rules/QAToolInspiredValidations


Ignore:
Timestamp:
2019-03-10T22:56:44+01:00 (7 years ago)
Author:
frodrigo
Comment:

Add Osmose mapcss tags

Legend:

Unmodified
Added
Removed
Modified
  • Rules/QAToolInspiredValidations

    v18 v19  
    8585    -osmoseItemClassLevel: "7012/1/3";
    8686    -osmoseTags: list("tag", "highway", "fix:survey");
    87     group: "OSMOSE 7012 -  bridge to tag";
     87    group: "OSMOSE 7012 - bridge to tag";
    8888}
    8989
    9090/* on junction = roundabout -- OSMOSE Item 4020 */
    9191
    92 *[junction=roundabout][oneway] {
    93     throwWarning: tr("4020: On junction=roundabout; Unnecessary oneway tag");
    94     group: "OSMOSE";
     92way[junction=roundabout][oneway] {
     93    throwInfo: tr("Unnecessary oneway tag");
     94    -osmoseItemClassLevel: "4020/101/3";
     95    -osmoseTags: list("highway", "roundabout", "fix:chair");
     96    group: "OSMOSE 4020 - on junction=roundabout";
    9597    fixRemove: "oneway";
    9698}
    9799
    98 *[junction=roundabout][ref] {
    99     throwWarning: tr("4020: On junction=roundabout; Unnecessary ref tag");
    100     group: "OSMOSE";
     100way[junction=roundabout][ref][inside("FR,NC")] {
     101    throwWarning: tr("Should not contain tag ref=%s");
     102    -osmoseItemClassLevel: "4020/102/2";
     103    -osmoseTags: list("highway", "roundabout", "fix:chair");
     104    group: "OSMOSE 4020 - on junction=roundabout";
    101105    fixRemove: "ref";
    102106}
     
    109113
    110114/* Oneway -- OSMOSE Item 2030 */
    111 
    112 /*-------Class 2-------*/
    113115
    114116way[highway] node:connection {
     
    136138
    137139way[highway][!junction][!oneway][eval(waylength()) < 100]  node.junc_node!.excluded {
    138     throwWarning: tr("2030/2 Oneway; Missing Oneway - Check highway entering/exiting roundabout");
     140    throwWarning: tr("Missing Oneway");
     141    -osmoseItemClassLevel: "2030/2/2";
     142    -osmoseTags: list("highway", "roundabout", "fix:chair");
    139143    group: "OSMOSE";
    140144}
    141145
    142 /* ----- Class 20301 ------ */
    143146way[cycleway=opposite][!oneway],
    144147way[cycleway=opposite_lane][!oneway] {
    145     throwWarning: tr("2030/20301 Oneway; Opposite cycleway without oneway");
    146     group: "OSMOSE";
     148    throwError: tr("Opposite cycleway without oneway");
     149    -osmoseItemClassLevel: "2030/20301/1";
     150    -osmoseTags: list("tag", "highway", "cycleway", "fix:survey");
     151    group: "OSMOSE 2030 - oneway";
    147152}
    148153
     
    156161/* Highway Roundabout OSMOSE Item 3010 */
    157162
    158 /*      Class 1 -- Wrong highway on roundabout  */
    159163/*---------- SET CLASSES ---------- */
    160164
     
    183187way[highway=residential][junction=roundabout] node:connection.primary_junc,
    184188way[highway=living_street][junction=roundabout] node:connection.primary_junc {
    185     throwWarning: tr("3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes");
    186     group: "OSMOSE";
     189    throwWarning: tr("Wrong highway on roundabout");
     190    -osmoseItemClassLevel: "3010/1/2";
     191    -osmoseTags: list("highway", "roundabout", "fix:chair");
     192    group: "OSMOSE 3010 - highway roundabout";
    187193}
    188194
     
    192198way[highway=residential][junction=roundabout] node:connection.secondary_junc,
    193199way[highway=living_street][junction=roundabout] node:connection.secondary_junc {
    194     throwWarning: tr("3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes");
    195     group: "OSMOSE";
     200    throwWarning: tr("Wrong highway on roundabout");
     201    -osmoseItemClassLevel: "3010/1/2";
     202    -osmoseTags: list("highway", "roundabout", "fix:chair");
     203    group: "OSMOSE 3010 - highway roundabout";
    196204}
    197205
     
    200208way[highway=residential][junction=roundabout] node:connection.tertiary_junc,
    201209way[highway=living_street][junction=roundabout] node:connection.tertiary_junc {
    202     throwWarning: tr("3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes");
    203     group: "OSMOSE";
    204 }
    205 
    206 /*      Class 4 -- Roundabout crossing  */
     210    throwWarning: tr("Wrong highway on roundabout");
     211    -osmoseItemClassLevel: "3010/1/2";
     212    -osmoseTags: list("highway", "roundabout", "fix:chair");
     213    group: "OSMOSE 3010 - highway roundabout";
     214}
     215
     216/*      Roundabout crossing     */
    207217
    208218way[highway][!junction] >[index=-1] node,
     
    217227
    218228way[highway][junction=roundabout] node:connection!.crossing!.junc_to_junc!.excluded {
    219     throwWarning: tr("3010/4: Highway Roundabout; highway crossing roundabout without stopping");
    220     group: "OSMOSE";
     229    throwWarning: tr("Roundabout crossing");
     230    -osmoseItemClassLevel: "3010/4/2";
     231    -osmoseTags: list("highway", "roundabout", "fix:chair");
     232    group: "OSMOSE 3010 - highway roundabout";
    221233}   
    222234