Changes between Version 28 and Version 29 of Rules/QAToolInspiredValidations


Ignore:
Timestamp:
2019-09-09T18:25:37+02:00 (9 days ago)
Author:
frodrigo
Comment:

Not Osmose rules, but inspired from Osmose

Legend:

Unmodified
Added
Removed
Modified
  • Rules/QAToolInspiredValidations

    v28 v29  
    33meta
    44{
    5   title: "Osmose Validations";
     5  title: "radiantsolutions Validations";
    66  version: "[[revision]]_[[date]]";
    7   description: "Checks for errors based on Osmose tag checks";
     7  description: "Checks for errors inspired on Osmose tag checks";
    88  author: "Dave Manzer & Milla Zagorski";
    99  watch-modified: true;
    10   link: "https://wiki.openstreetmap.org/wiki/Osmose/issues";
    1110  min-josm-version: 14481; 
    1211}
     
    1716way[building][eval(areasize() < 0.25)] {
    1817    throwWarning: tr("0/3: Building too small");
    19     group: "OSMOSE";
     18    group: "radiantsolutions";
    2019}
    2120
     
    4948    -osmoseItemClassLevel: "1210/1/1";
    5049    -osmoseTags: list("highway", "cycleway", "fix:chair");
    51     group: "OSMOSE 1210 - not-connected highway/cycleway";
     50    group: "1210 - not-connected highway/cycleway";
    5251}
    5352
     
    6160    -osmoseItemClassLevel: "1210/2/1";
    6261    -osmoseTags: list("highway", "fix:chair");
    63     group: "OSMOSE 1210 - not-connected highway/cycleway";
     62    group: "1210 - not-connected highway/cycleway";
    6463}
    6564
     
    7473    -osmoseItemClassLevel: "1200/12001:1/2";
    7574    -osmoseTags: list("relation", "fix:chair");
    76     group: "OSMOSE 1200 - 1-member relation";
     75    group: "1200 - 1-member relation";
    7776}
    7877
     
    8079node[natural=tree] ∈ area[building] {
    8180  throwWarning: tr("1070/2: Tree inside {0}", "{0.key}");
    82   group: "OSMOSE";
     81  group: "1070";
    8382}
    8483
     
    8685node[natural=tree][!type] {
    8786  throwOther: tr("3120: {0} without {1} tag", "{0.tag}", "{1.key}");
    88   group: "OSMOSE";
     87  group: "3120";
    8988}
    9089
     
    9291node[natural=tree][!/^species:/] {
    9392  throwOther: tr("3120: {0} without species tag", "{0.tag}");
    94   group: "OSMOSE";
     93  group: "3120";
    9594}
    9695
     
    105104way[highway][ford!=yes] > node.node_in_waterway {
    106105  throwOther: tr("Intersection of unrelated highway and waterway objects");
    107   group: "OSMOSE";
    108106}
    109107
     
    114112    -osmoseItemClassLevel: "1110/2/1";
    115113    -osmoseTags: list("relation", "fix:chair");
    116     group: "OSMOSE 1110 - bad *_link highway";
     114    group: "1110 - bad *_link highway";
    117115}
    118116
     
    124122    -osmoseItemClassLevel: "7012/1/3";
    125123    -osmoseTags: list("tag", "highway", "fix:survey");
    126     group: "OSMOSE 7012 - bridge to tag";
     124    group: "7012 - bridge to tag";
    127125}
    128126
     
    133131    -osmoseItemClassLevel: "4020/101/3";
    134132    -osmoseTags: list("highway", "roundabout", "fix:chair");
    135     group: "OSMOSE 4020 - on junction=roundabout";
     133    group: "4020 - on junction=roundabout";
    136134    fixRemove: "oneway";
    137135}
     
    141139    -osmoseItemClassLevel: "4020/102/2";
    142140    -osmoseTags: list("highway", "roundabout", "fix:chair");
    143     group: "OSMOSE 4020 - on junction=roundabout";
     141    group: "4020 - on junction=roundabout";
    144142    fixRemove: "ref";
    145143}
     
    147145*[junction=roundabout][area] {
    148146    throwWarning: "tr(4020: On junction=roundabout; Unnecessary area tag");
    149     group: "OSMOSE";
     147    group: "4020";
    150148    fixRemove: "area";
    151149}
     
    165163node[junction=roundabout] < way[highway][!oneway][eval(waylength()) < 100] {
    166164    throwError: tr("2030/2: Missing Oneway - Check highway entering/exiting roundabout");
    167     group: tr("OSMOSE");
     165    group: tr("2030");
    168166}
    169167*/
     
    180178    -osmoseItemClassLevel: "2030/2/2";
    181179    -osmoseTags: list("highway", "roundabout", "fix:chair");
    182     group: "OSMOSE";
     180    group: "2030";
    183181}
    184182
     
    188186    -osmoseItemClassLevel: "2030/20301/1";
    189187    -osmoseTags: list("tag", "highway", "cycleway", "fix:survey");
    190     group: "OSMOSE 2030 - oneway";
     188    group: "2030 - oneway";
    191189}
    192190
     
    194192way[boundary=administrative][!source]{
    195193    throwOther: tr("2040: Source; administrative boundary does not have source tag");
    196     group: "OSMOSE";
     194    group: "2040";
    197195}
    198196
     
    229227    -osmoseItemClassLevel: "3010/1/2";
    230228    -osmoseTags: list("highway", "roundabout", "fix:chair");
    231     group: "OSMOSE 3010 - highway roundabout";
     229    group: "3010 - highway roundabout";
    232230}
    233231
     
    240238    -osmoseItemClassLevel: "3010/1/2";
    241239    -osmoseTags: list("highway", "roundabout", "fix:chair");
    242     group: "OSMOSE 3010 - highway roundabout";
     240    group: "3010 - highway roundabout";
    243241}
    244242
     
    250248    -osmoseItemClassLevel: "3010/1/2";
    251249    -osmoseTags: list("highway", "roundabout", "fix:chair");
    252     group: "OSMOSE 3010 - highway roundabout";
     250    group: "3010 - highway roundabout";
    253251}
    254252
     
    278276    -osmoseItemClassLevel: "3010/4/2";
    279277    -osmoseTags: list("highway", "roundabout", "fix:chair");
    280     group: "OSMOSE 3010 - highway roundabout";
     278    group: "3010 - highway roundabout";
    281279}   
    282280
     
    292290node[power=pole]!.on_line {
    293291    throwWarning: tr("7040/1: Lone power tower or pole");
    294     group: "OSMOSE";
     292    group: "7040";
    295293}
    296294
     
    302300way[power=line] >[index=-1] node[power!=generator][power!=substation]:new!:connection  {
    303301    throwWarning: tr("7040/2: Unfinished power major line");
    304     group: "OSMOSE";
     302    group: "7040";
    305303}
    306304
     
    313311way[power=line] node:tagged!.pwr {
    314312    throwWarning: tr("7040/4: Non power node on power way");
    315     group: "OSMOSE";
     313    group: "7040";
    316314}
    317315