Changes between Version 17 and Version 18 of Rules/QAToolInspiredValidations


Ignore:
Timestamp:
2019-03-10T16:00:47+01:00 (7 years ago)
Author:
frodrigo
Comment:

Add Osmose mapcss tags

Legend:

Unmodified
Added
Removed
Modified
  • Rules/QAToolInspiredValidations

    v17 v18  
    99  watch-modified: true;
    1010  link: "https://wiki.openstreetmap.org/wiki/Osmose/issues";
     11  min-josm-version: 14481; 
    1112}
    1213
     
    3738way[highway=cycleway]!:closed!.connected_node.new_feature >[index=1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking],
    3839way[highway=cycleway]!:closed!.connected_node.new_feature >[index=-1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking] {
    39     throwWarning: tr("1210: Unconnected Cycleway");
    40     group: "OSMOSE";
     40    throwWarning: tr("Unconnected Cycleway");
     41    -osmoseItemClassLevel: "1210/1/1";
     42    -osmoseTags: list("highway", "cycleway", "fix:chair");
     43    group: "OSMOSE 1210 - not-connected highway/cycleway";
    4144}
    4245
     
    4750way[highway=~/^(motorway|trunk|primary|secondary|tertiary|unclassified)$/]!:closed!.connected_node.new_feature >[index=-1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking][highway!=turning_circle],
    4851way[highway=~/^(motorway|trunk|primary|secondary|tertiary|unclassified)$/]!:closed!.connected_node.new_feature >[index=1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking][highway!=turning_circle] {
    49     throwWarning: tr("1210: Unconnected Highway");
    50     group: "OSMOSE";
     52    throwWarning: tr("Unconnected Highway");
     53    -osmoseItemClassLevel: "1210/2/1";
     54    -osmoseTags: list("highway", "fix:chair");
     55    group: "OSMOSE 1210 - not-connected highway/cycleway";
    5156}
    5257
     
    5762}
    5863
    59 relation[type] >[index=1].member way {
    60     throwWarning: tr("1200: One Member Relation; Check for other members");
    61     group: "OSMOSE";
     64relation[type][type!~/^(defaults|route|route_master|associatedStreet)$/][site!=geodesic] >[index=1].member way {
     65    throwWarning: tr("1200: One Member Relation; Check for other members or remove relation");
     66    -osmoseItemClassLevel: "1200/12001:1/2";
     67    -osmoseTags: list("relation", "fix:chair");
     68    group: "OSMOSE 1200 - 1-member relation";
    6269}
    6370
    6471 /* Bad link highway -- OSMOSE Item 1110 */
    6572
    66 /*class 2*/
    67 way[highway*="_link"][eval(waylength()) > 1000] {
    68     throwWarning: tr("1110/2: Bad *_link Highway; highway too long for a *_link");
    69     group: "OSMOSE";
     73way[highway*="_link"][highway!~/^(motorway_link|trunk_link)$/][eval(waylength()) > 1000] {
     74    throwWarning: tr("Highway too long for a *_link");
     75    -osmoseItemClassLevel: "1110/2/1";
     76    -osmoseTags: list("relation", "fix:chair");
     77    group: "OSMOSE 1110 - bad *_link highway";
    7078}
    7179
    7280 /* Bridge to tag -- OSMOSE Item 7012 */
    73 way[bridge=yes][!/^bridge:/][eval(waylength()) > 500] {
    74     throwWarning: tr("7012: Bridge to Tag; bridge deserving of more detail");
    75     group: "OSMOSE";
     81
     82way[bridge=yes][highway!~/^(motorway|trunk|primary|secondary)$/][!/^bridge:/][eval(waylength()) > 500],
     83way[bridge=yes][railway][!/^bridge:/][eval(waylength()) > 500] {
     84    throwInfo: tr("Bridge structure missing");
     85    -osmoseItemClassLevel: "7012/1/3";
     86    -osmoseTags: list("tag", "highway", "fix:survey");
     87    group: "OSMOSE 7012 -  bridge to tag";
    7688}
    7789