Changes between Version 7 and Version 8 of Rules/OsmoseValidations


Ignore:
Timestamp:
2019-02-08T20:10:11+01:00 (9 days ago)
Author:
abalosc1
Comment:

add osmose item 1090

Legend:

Unmodified
Added
Removed
Modified
  • Rules/OsmoseValidations

    v7 v8  
    536536}
    537537
     538/* OSMOSE sudden highway type change -- Item 1090 */
     539
     540/* ---- SET CLASSES ---- */
     541
     542way[highway=primary] node:connection {
     543        set hwy_cont_primary;
     544}
     545
     546way[highway=secondary] node:connection {
     547        set hwy_cont_secondary;
     548}
     549
     550way[highway=tertiary] node:connection {
     551        set hwy_cont_tertiary;
     552}
     553
     554way[highway=unclassified] node:connection {
     555        set hwy_cont_unclassified;
     556}
     557
     558way[highway=residential] node:connection,
     559way[highway=living_street] node:connection {
     560        set hwy_cont_residential;
     561}
     562
     563
     564/* ----  Sudden Highway Type Change Checks ---- */
     565
     566/* Motorway Continuity */
     567way[highway=motorway].hwy_cont_primary >[index=-1] node,
     568way[highway=motorway].hwy_cont_primary >[index=1] node {
     569                throwWarning: "motorway connected to primary road - check for sudden highway type change";
     570        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     571}
     572
     573way[highway=motorway].hwy_cont_secondary >[index=-1] node,
     574way[highway=motorway].hwy_cont_secondary >[index=1] node {
     575                throwWarning: "motorway connected to secondary road - check for sudden highway type change";
     576        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     577}
     578
     579way[highway=motorway].hwy_cont_tertiary >[index=-1] node,
     580way[highway=motorway].hwy_cont_tertiary >[index=1] node {
     581                throwWarning: "motorway connected to tertiary road - check for sudden highway type change";
     582        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     583}
     584
     585way[highway=motorway].hwy_cont_unclassified >[index=-1] node,
     586way[highway=motorway].hwy_cont_unclassified >[index=1] node {
     587                throwWarning: "motorway connected to unclassified road - check for sudden highway type change";
     588        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     589}
     590
     591way[highway=motorway].hwy_cont_residential >[index=-1] node,
     592way[highway=motorway].hwy_cont_residential >[index=1] node {
     593                throwWarning: "motorway connected to residential road - check for sudden highway type change";
     594        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     595}
     596
     597
     598/* Trunk Continuity */
     599way[highway=trunk].hwy_cont_secondary >[index=-1] node,
     600way[highway=trunk].hwy_cont_secondary >[index=1] node {
     601                throwWarning: "trunk connected to secondary road - check for sudden highway type change";
     602        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     603}
     604
     605way[highway=trunk].hwy_cont_tertiary >[index=-1] node,
     606way[highway=trunk].hwy_cont_tertiary >[index=1] node {
     607                throwWarning: "trunk connected to tertiary road - check for sudden highway type change";
     608        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     609}
     610
     611way[highway=trunk].hwy_cont_unclassified >[index=-1] node,
     612way[highway=trunk].hwy_cont_unclassified >[index=1] node {
     613                throwWarning: "trunk connected to unclassified road - check for sudden highway type change";
     614        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     615}
     616
     617way[highway=trunk].hwy_cont_residential >[index=-1] node,
     618way[highway=trunk].hwy_cont_residential >[index=1] node {
     619                throwWarning: "trunk connected to residential road - check for sudden highway type change";
     620        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     621}
     622
     623
     624/* Primary Continuity */
     625way[highway=primary].hwy_cont_tertiary >[index=-1] node,
     626way[highway=primary].hwy_cont_tertiary >[index=1] node {
     627                throwWarning: "primary connected to tertiary road - check for sudden highway type change";
     628        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     629}
     630
     631way[highway=primary].hwy_cont_unclassified >[index=-1] node,
     632way[highway=primary].hwy_cont_unclassified >[index=1] node {
     633                throwWarning: "primary connected to unclassified road - check for sudden highway type change";
     634        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     635}
     636
     637way[highway=primary].hwy_cont_residential >[index=-1] node,
     638way[highway=primary].hwy_cont_residential >[index=1] node {
     639                throwWarning: "primary connected to residential road - check for sudden highway type change";
     640        group: tr("Sudden highway type change -- OSMOSE Item 1090/1");
     641}
     642
     643
     644/* Secondary Continuity */
     645way[highway=secondary].hwy_cont_unclassified >[index=-1] node,
     646way[highway=secondary].hwy_cont_unclassified >[index=1] node {
     647                throwWarning: "secondary connected to unclassified road - check for sudden highway type change";
     648        group: tr("Sudden highway type change -- OSMOSE Item 1090/2");
     649}
     650
     651way[highway=secondary].hwy_cont_residential >[index=-1] node,
     652way[highway=secondary].hwy_cont_residential >[index=1] node {
     653                throwWarning: "secondary connected to residential road - check for sudden highway type change";
     654        group: tr("Sudden highway type change -- OSMOSE Item 1090/2");
     655}
     656
    538657}}}