Changes between Version 13 and Version 14 of Rules/ValidatingBuildingsInHOTTMProjects
- Timestamp:
- 2023-04-10T18:53:37+02:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/ValidatingBuildingsInHOTTMProjects
v13 v14 3 3 meta 4 4 { 5 title: "Validating tasks in HOT TM projects .";5 title: "Validating tasks in HOT TM projects"; 6 6 version: "[[revision]]_[[date]]"; 7 7 description: "Few rules for checking mistakes mostly made by beginners using ID Editor."; … … 11 11 } 12 12 13 14 13 /* 15 Building with layer tag with exception for building=roof14 Uploaded part of taskgrid. Added thanks to adiatmad (dinar) 16 15 */ 17 *[building][building!=roof][layer]{ 18 throwWarning: tr("_Fix - Building has layer tag"); 19 fixRemove: "layer"; 20 group: tr("HOT TM Validator Checker"); 21 } 22 23 /* 24 Building with different tag then yes 25 */ 26 way[building][building!=yes]{ 27 throwWarning: tr("Building has different tag then yes"); 28 group: tr("HOT TM Validator Checker"); 29 } 30 31 /* 32 Node with building tag 33 */ 34 node[building]{ 35 throwWarning: tr("Node has a building tag"); 16 *[taskId][taskStatus]{ 17 throwError: tr("Part of project taskgrid"); 36 18 group: tr("HOT TM Validator Checker"); 37 19 } … … 56 38 57 39 /* 40 Building with layer tag with exception for building=roof 41 */ 42 *[building][building!=roof][layer]{ 43 throwWarning: tr("_Fix - Building has layer tag"); 44 fixRemove: "layer"; 45 group: tr("HOT TM Validator Checker"); 46 } 47 48 /* 58 49 Highway with layer tag with exception for tunnel and bridge. Added thanks to martien-176 59 50 */ 60 *[highway][ tunnel!=yes][bridge!=yes][layer]{51 *[highway][!bridge][!tunnel][layer]{ 61 52 throwWarning: tr("_Fix - Highway has layer tag"); 62 53 fixRemove: "layer"; … … 67 58 Waterway with layer tag. Added thanks to martien-176 68 59 */ 69 *[waterway][ tunnel!=culvert][layer]{60 *[waterway][!bridge][!tunnel][layer]{ 70 61 throwWarning: tr("_Fix - Waterway has layer tag"); 71 62 fixRemove: "layer"; … … 74 65 75 66 /* 76 Square of a TM project taskgrid. Added thanks to Adiatma IRM-RV (dinar)67 Building with different tag then yes 77 68 */ 78 *[taskId][taskStatus]{79 throw Error: tr("Part of project taskgrid");69 way[building][building!=yes]{ 70 throwWarning: tr("Building has different tag then yes"); 80 71 group: tr("HOT TM Validator Checker"); 81 72 } 82 73 83 74 /* 84 Testing update system75 Node with building tag 85 76 */ 86 node[ SpecialTagThatShouldNotBeUsuallyInOSMtoNotScareUsers=ewfjgvhewhfjke24ewf4585wef2wef88qse4gwhtzrjki86u]{87 throwWarning: tr(" If you see this please contact Patrik_B");77 node[building]{ 78 throwWarning: tr("Node has a building tag"); 88 79 group: tr("HOT TM Validator Checker"); 89 80 } 81 82 /* 83 Too short unclassified highway (highway probably having wrong tag). Added thanks to adiatmad (dinar) 84 */ 85 way[highway=unclassified][waylength() < 50][!bridge][!tunnel] { 86 throwWarning: tr("Unclassified highway shorter than 50 meters."); 87 group: tr("HOT TM Validator Checker"); 88 } 89 90 90 }}}
