Changes between Version 6 and Version 7 of Rules/QAToolInspiredValidations


Ignore:
Timestamp:
2019-02-06T20:41:01+01:00 (7 years ago)
Author:
abalosc1
Comment:

add Osmose Item 1200, 1110/2, 7012, 4020, 2030/2, 2030/1, 2040

Legend:

Unmodified
Added
Removed
Modified
  • Rules/QAToolInspiredValidations

    v6 v7  
    446446}
    447447
     448/* 1-member-relation -- OSMOSE Item 1200 */
     449
     450relation[type] >[index=-1] way {
     451        set member;
     452}
     453
     454relation[type] >[index=1].member way {
     455                throwWarning: "One Member Relation: Check for other members";
     456        group: "Osmose Item 1200";
     457}
     458
     459 /* Bad link highway -- OSMOSE Item 1110 */
     460
     461/*class 2*/
     462 way[highway*="_link"][eval(waylength()) > 1000] {
     463                throwWarning: "bad highway link";
     464        group: tr("highway too long for *_link -- OSMOSE item 1110/2");
     465 }
     466
     467
     468 /* Bridge to tag -- OSMOSE Item 7012 */
     469way[bridge=yes][!/^bridge:/][eval(waylength()) > 500] {
     470                throwWarning: "bridge deserving of more detail use bridge:structure= or bridge:support=; ";
     471        group: tr("bridge to tag -- OSMOSE Item 7012");
     472}
     473
     474
     475/* on junction = roundabout -- OSMOSE Item 4020 */
     476
     477*[junction=roundabout][oneway] {
     478                throwWarning: "Unnecessary oneway tag";
     479        group: tr("on junction=roundabout -- OSMOSE Item 4020");
     480        fixRemove: "oneway";
     481}
     482
     483*[junction=roundabout][ref] {
     484                throwWarning: "Unnecessary ref tag";
     485        group: tr("on junction=roundabout -- OSMOSE Item 4020");
     486        fixRemove: "ref";
     487}
     488
     489*[junction=roundabout][area] {
     490                throwWarning: "Unnecessary area tag";
     491        group: tr("on junction=roundabout -- OSMOSE Item 4020");
     492        fixRemove: "area";
     493}
     494
     495/* Oneway -- OSMOSE Item 2030 */
     496
     497
     498/*-------Class 2-------*/
     499
     500way[highway] node:connection {
     501        set highway_node;
     502}
     503
     504way[junction=roundabout] node.highway_node {
     505        set junc_node
     506}
     507
     508
     509/*
     510Typically does not apply
     511node[junction=roundabout] < way[highway][!oneway][eval(waylength()) < 100] {
     512                throwError: "Missing Oneway - Check highway entering/exiting roundabout";
     513        group: tr("oneway -- OSMOSE Item 2030/2")
     514}
     515*/
     516
     517
     518way[highway][!junction][!oneway][eval(waylength()) < 100]  node.junc_node {
     519                throwWarning: "Missing Oneway - Check highway entering/exiting roundabout";
     520        group: tr("oneway -- OSMOSE Item 2030/2")
     521}
     522
     523
     524
     525/* ----- Class 20301 ------ */
     526way[cycleway=opposite][!oneway],
     527way[cycleway=opposite_lane][!oneway] {
     528                throwWarning: "Opposite cycleway without oneway";
     529        group: tr("oneway -- OSMOSE Item 2030/20301");
     530}
     531
     532/* source -- OSMOSE Item 2040 -- administrative boundary does not contain tag source=* */
     533way[boundary=administrative][!source]{
     534                throwError: "administrative boundary does not have source tag";
     535        group: "source -- OSMOSE Item 2040";
     536}
     537
    448538}}}