Changes between Version 15 and Version 16 of Rules/QAToolInspiredValidations
- Timestamp:
- 2019-02-25T17:42:55+01:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/QAToolInspiredValidations
v15 v16 37 37 way[highway=cycleway]!:closed!.connected_node.new_feature >[index=1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking], 38 38 way[highway=cycleway]!:closed!.connected_node.new_feature >[index=-1] node[noexit!=yes][amenity!=parking_entrance][amenity!=parking] { 39 throwWarning: "1210: Unconnected Cycleway"; 39 throwWarning: tr("1210: Unconnected Cycleway"); 40 40 group: "OSMOSE"; 41 41 } … … 47 47 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 48 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: "1210: Unconnected Highway"; 49 throwWarning: tr("1210: Unconnected Highway"); 50 50 group: "OSMOSE"; 51 51 } … … 58 58 59 59 relation[type] >[index=1].member way { 60 throwWarning: "1200: One Member Relation; Check for other members"; 60 throwWarning: tr("1200: One Member Relation; Check for other members"); 61 61 group: "OSMOSE"; 62 62 } … … 66 66 /*class 2*/ 67 67 way[highway*="_link"][eval(waylength()) > 1000] { 68 throwWarning: "1110/2: Bad *_link Highway; highway too long for a *_link"; 68 throwWarning: tr("1110/2: Bad *_link Highway; highway too long for a *_link"); 69 69 group: "OSMOSE"; 70 70 } … … 72 72 /* Bridge to tag -- OSMOSE Item 7012 */ 73 73 way[bridge=yes][!/^bridge:/][eval(waylength()) > 500] { 74 throwWarning: "7012: Bridge to Tag; bridge deserving of more detail"; 74 throwWarning: tr("7012: Bridge to Tag; bridge deserving of more detail"); 75 75 group: "OSMOSE"; 76 76 } … … 79 79 80 80 *[junction=roundabout][oneway] { 81 throwWarning: "4020: On junction=roundabout; Unnecessary oneway tag"; 81 throwWarning: tr("4020: On junction=roundabout; Unnecessary oneway tag"); 82 82 group: "OSMOSE"; 83 83 fixRemove: "oneway"; … … 85 85 86 86 *[junction=roundabout][ref] { 87 throwWarning: "4020: On junction=roundabout; Unnecessary ref tag"; 87 throwWarning: tr("4020: On junction=roundabout; Unnecessary ref tag"); 88 88 group: "OSMOSE"; 89 89 fixRemove: "ref"; … … 91 91 92 92 *[junction=roundabout][area] { 93 throwWarning: "4020: On junction=roundabout; Unnecessary area tag"; 93 throwWarning: "tr(4020: On junction=roundabout; Unnecessary area tag"); 94 94 group: "OSMOSE"; 95 95 fixRemove: "area"; … … 111 111 Typically does not apply 112 112 node[junction=roundabout] < way[highway][!oneway][eval(waylength()) < 100] { 113 throwError: "Missing Oneway - Check highway entering/exiting roundabout";114 group: tr(" oneway -- OSMOSE Item 2030/2")113 throwError: tr("2030/2: Missing Oneway - Check highway entering/exiting roundabout"); 114 group: tr("OSMOSE"); 115 115 } 116 116 */ 117 117 118 118 way[highway][!junction][!oneway][eval(waylength()) < 100] node.junc_node { 119 throwWarning: "2030/2 Oneway; Missing Oneway - Check highway entering/exiting roundabout"; 119 throwWarning: tr("2030/2 Oneway; Missing Oneway - Check highway entering/exiting roundabout"); 120 120 group: "OSMOSE"; 121 121 } … … 124 124 way[cycleway=opposite][!oneway], 125 125 way[cycleway=opposite_lane][!oneway] { 126 throwWarning: "2030/20301 Oneway; Opposite cycleway without oneway"; 126 throwWarning: tr("2030/20301 Oneway; Opposite cycleway without oneway"); 127 127 group: "OSMOSE"; 128 128 } … … 130 130 /* source -- OSMOSE Item 2040 -- administrative boundary does not contain tag source=* */ 131 131 way[boundary=administrative][!source]{ 132 throwError: "2040: Source; administrative boundary does not have source tag"; 132 throwError: tr("2040: Source; administrative boundary does not have source tag"); 133 133 group: "OSMOSE"; 134 134 } … … 164 164 way[highway=residential][junction=roundabout] node:connection.primary_junc, 165 165 way[highway=living_street][junction=roundabout] node:connection.primary_junc { 166 throwWarning: "3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes"; 166 throwWarning: tr("3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes"); 167 167 group: "OSMOSE"; 168 168 } … … 173 173 way[highway=residential][junction=roundabout] node:connection.secondary_junc, 174 174 way[highway=living_street][junction=roundabout] node:connection.secondary_junc { 175 throwWarning: "3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes"; 175 throwWarning: tr("3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes"); 176 176 group: "OSMOSE"; 177 177 } … … 181 181 way[highway=residential][junction=roundabout] node:connection.tertiary_junc, 182 182 way[highway=living_street][junction=roundabout] node:connection.tertiary_junc { 183 throwWarning: "3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes"; 183 throwWarning: tr("3010/1: Highway Roundabout; highway tag on roundabout must match highest level of connected routes"); 184 184 group: "OSMOSE"; 185 185 } … … 198 198 199 199 way[highway][junction=roundabout] node:connection!.crossing!.junc_to_junc { 200 throwWarning: "3010/4: Highway Roundabout; highway crossing roundabout without stopping"; 200 throwWarning: tr("3010/4: Highway Roundabout; highway crossing roundabout without stopping"); 201 201 group: "OSMOSE"; 202 202 }
