Changes between Version 17 and Version 18 of Rules/QAToolInspiredValidations
- Timestamp:
- 2019-03-10T16:00:47+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/QAToolInspiredValidations
v17 v18 9 9 watch-modified: true; 10 10 link: "https://wiki.openstreetmap.org/wiki/Osmose/issues"; 11 min-josm-version: 14481; 11 12 } 12 13 … … 37 38 way[highway=cycleway]!:closed!.connected_node.new_feature >[index=1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking], 38 39 way[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"; 41 44 } 42 45 … … 47 50 way[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], 48 51 way[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"; 51 56 } 52 57 … … 57 62 } 58 63 59 relation[type] >[index=1].member way { 60 throwWarning: tr("1200: One Member Relation; Check for other members"); 61 group: "OSMOSE"; 64 relation[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"; 62 69 } 63 70 64 71 /* Bad link highway -- OSMOSE Item 1110 */ 65 72 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"; 73 way[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"; 70 78 } 71 79 72 80 /* 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 82 way[bridge=yes][highway!~/^(motorway|trunk|primary|secondary)$/][!/^bridge:/][eval(waylength()) > 500], 83 way[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"; 76 88 } 77 89
