Changes between Version 28 and Version 29 of Rules/QAToolInspiredValidations
- Timestamp:
- 2019-09-09T18:25:37+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/QAToolInspiredValidations
v28 v29 3 3 meta 4 4 { 5 title: " OsmoseValidations";5 title: "radiantsolutions Validations"; 6 6 version: "[[revision]]_[[date]]"; 7 description: "Checks for errors based on Osmose tag checks";7 description: "Checks for errors inspired on Osmose tag checks"; 8 8 author: "Dave Manzer & Milla Zagorski"; 9 9 watch-modified: true; 10 link: "https://wiki.openstreetmap.org/wiki/Osmose/issues";11 10 min-josm-version: 14481; 12 11 } … … 17 16 way[building][eval(areasize() < 0.25)] { 18 17 throwWarning: tr("0/3: Building too small"); 19 group: " OSMOSE";18 group: "radiantsolutions"; 20 19 } 21 20 … … 49 48 -osmoseItemClassLevel: "1210/1/1"; 50 49 -osmoseTags: list("highway", "cycleway", "fix:chair"); 51 group: " OSMOSE1210 - not-connected highway/cycleway";50 group: "1210 - not-connected highway/cycleway"; 52 51 } 53 52 … … 61 60 -osmoseItemClassLevel: "1210/2/1"; 62 61 -osmoseTags: list("highway", "fix:chair"); 63 group: " OSMOSE1210 - not-connected highway/cycleway";62 group: "1210 - not-connected highway/cycleway"; 64 63 } 65 64 … … 74 73 -osmoseItemClassLevel: "1200/12001:1/2"; 75 74 -osmoseTags: list("relation", "fix:chair"); 76 group: " OSMOSE1200 - 1-member relation";75 group: "1200 - 1-member relation"; 77 76 } 78 77 … … 80 79 node[natural=tree] ∈ area[building] { 81 80 throwWarning: tr("1070/2: Tree inside {0}", "{0.key}"); 82 group: " OSMOSE";81 group: "1070"; 83 82 } 84 83 … … 86 85 node[natural=tree][!type] { 87 86 throwOther: tr("3120: {0} without {1} tag", "{0.tag}", "{1.key}"); 88 group: " OSMOSE";87 group: "3120"; 89 88 } 90 89 … … 92 91 node[natural=tree][!/^species:/] { 93 92 throwOther: tr("3120: {0} without species tag", "{0.tag}"); 94 group: " OSMOSE";93 group: "3120"; 95 94 } 96 95 … … 105 104 way[highway][ford!=yes] > node.node_in_waterway { 106 105 throwOther: tr("Intersection of unrelated highway and waterway objects"); 107 group: "OSMOSE";108 106 } 109 107 … … 114 112 -osmoseItemClassLevel: "1110/2/1"; 115 113 -osmoseTags: list("relation", "fix:chair"); 116 group: " OSMOSE1110 - bad *_link highway";114 group: "1110 - bad *_link highway"; 117 115 } 118 116 … … 124 122 -osmoseItemClassLevel: "7012/1/3"; 125 123 -osmoseTags: list("tag", "highway", "fix:survey"); 126 group: " OSMOSE7012 - bridge to tag";124 group: "7012 - bridge to tag"; 127 125 } 128 126 … … 133 131 -osmoseItemClassLevel: "4020/101/3"; 134 132 -osmoseTags: list("highway", "roundabout", "fix:chair"); 135 group: " OSMOSE4020 - on junction=roundabout";133 group: "4020 - on junction=roundabout"; 136 134 fixRemove: "oneway"; 137 135 } … … 141 139 -osmoseItemClassLevel: "4020/102/2"; 142 140 -osmoseTags: list("highway", "roundabout", "fix:chair"); 143 group: " OSMOSE4020 - on junction=roundabout";141 group: "4020 - on junction=roundabout"; 144 142 fixRemove: "ref"; 145 143 } … … 147 145 *[junction=roundabout][area] { 148 146 throwWarning: "tr(4020: On junction=roundabout; Unnecessary area tag"); 149 group: " OSMOSE";147 group: "4020"; 150 148 fixRemove: "area"; 151 149 } … … 165 163 node[junction=roundabout] < way[highway][!oneway][eval(waylength()) < 100] { 166 164 throwError: tr("2030/2: Missing Oneway - Check highway entering/exiting roundabout"); 167 group: tr(" OSMOSE");165 group: tr("2030"); 168 166 } 169 167 */ … … 180 178 -osmoseItemClassLevel: "2030/2/2"; 181 179 -osmoseTags: list("highway", "roundabout", "fix:chair"); 182 group: " OSMOSE";180 group: "2030"; 183 181 } 184 182 … … 188 186 -osmoseItemClassLevel: "2030/20301/1"; 189 187 -osmoseTags: list("tag", "highway", "cycleway", "fix:survey"); 190 group: " OSMOSE2030 - oneway";188 group: "2030 - oneway"; 191 189 } 192 190 … … 194 192 way[boundary=administrative][!source]{ 195 193 throwOther: tr("2040: Source; administrative boundary does not have source tag"); 196 group: " OSMOSE";194 group: "2040"; 197 195 } 198 196 … … 229 227 -osmoseItemClassLevel: "3010/1/2"; 230 228 -osmoseTags: list("highway", "roundabout", "fix:chair"); 231 group: " OSMOSE3010 - highway roundabout";229 group: "3010 - highway roundabout"; 232 230 } 233 231 … … 240 238 -osmoseItemClassLevel: "3010/1/2"; 241 239 -osmoseTags: list("highway", "roundabout", "fix:chair"); 242 group: " OSMOSE3010 - highway roundabout";240 group: "3010 - highway roundabout"; 243 241 } 244 242 … … 250 248 -osmoseItemClassLevel: "3010/1/2"; 251 249 -osmoseTags: list("highway", "roundabout", "fix:chair"); 252 group: " OSMOSE3010 - highway roundabout";250 group: "3010 - highway roundabout"; 253 251 } 254 252 … … 278 276 -osmoseItemClassLevel: "3010/4/2"; 279 277 -osmoseTags: list("highway", "roundabout", "fix:chair"); 280 group: " OSMOSE3010 - highway roundabout";278 group: "3010 - highway roundabout"; 281 279 } 282 280 … … 292 290 node[power=pole]!.on_line { 293 291 throwWarning: tr("7040/1: Lone power tower or pole"); 294 group: " OSMOSE";292 group: "7040"; 295 293 } 296 294 … … 302 300 way[power=line] >[index=-1] node[power!=generator][power!=substation]:new!:connection { 303 301 throwWarning: tr("7040/2: Unfinished power major line"); 304 group: " OSMOSE";302 group: "7040"; 305 303 } 306 304 … … 313 311 way[power=line] node:tagged!.pwr { 314 312 throwWarning: tr("7040/4: Non power node on power way"); 315 group: " OSMOSE";313 group: "7040"; 316 314 } 317 315
