Changes between Version 13 and Version 14 of Rules/ValidatingBuildingsInHOTTMProjects


Ignore:
Timestamp:
2023-04-10T18:53:37+02:00 (3 years ago)
Author:
Patrik_B
Comment:

removed test node, added test for Unclassified highway shorter than 50 meters.

Legend:

Unmodified
Added
Removed
Modified
  • Rules/ValidatingBuildingsInHOTTMProjects

    v13 v14  
    33meta
    44{
    5   title: "Validating tasks in HOT TM projects.";
     5  title: "Validating tasks in HOT TM projects";
    66  version: "[[revision]]_[[date]]";
    77  description: "Few rules for checking mistakes mostly made by beginners using ID Editor.";
     
    1111}
    1212
    13 
    1413/*
    15   Building with layer tag with exception for building=roof
     14  Uploaded part of taskgrid. Added thanks to adiatmad (dinar)
    1615*/
    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]{
     17throwError: tr("Part of project taskgrid");
    3618group: tr("HOT TM Validator Checker");
    3719}
     
    5638
    5739/*
     40  Building with layer tag with exception for building=roof
     41*/
     42*[building][building!=roof][layer]{
     43throwWarning: tr("_Fix - Building has layer tag");
     44fixRemove: "layer";
     45group: tr("HOT TM Validator Checker");
     46}
     47
     48/*
    5849  Highway with layer tag with exception for tunnel and bridge. Added thanks to martien-176
    5950*/
    60 *[highway][tunnel!=yes][bridge!=yes][layer]{
     51*[highway][!bridge][!tunnel][layer]{
    6152throwWarning: tr("_Fix - Highway has layer tag");
    6253fixRemove: "layer";
     
    6758  Waterway with layer tag. Added thanks to martien-176
    6859*/
    69 *[waterway][tunnel!=culvert][layer]{
     60*[waterway][!bridge][!tunnel][layer]{
    7061throwWarning: tr("_Fix - Waterway has layer tag");
    7162fixRemove: "layer";
     
    7465
    7566/*
    76   Square of a TM project taskgrid. Added thanks to Adiatma IRM-RV (dinar)
     67  Building with different tag then yes
    7768*/
    78 *[taskId][taskStatus]{
    79 throwError: tr("Part of project taskgrid");
     69way[building][building!=yes]{
     70throwWarning: tr("Building has different tag then yes");
    8071group: tr("HOT TM Validator Checker");
    8172}
    8273
    8374/*
    84   Testing update system
     75  Node with building tag
    8576*/
    86 node[SpecialTagThatShouldNotBeUsuallyInOSMtoNotScareUsers=ewfjgvhewhfjke24ewf4585wef2wef88qse4gwhtzrjki86u]{
    87 throwWarning: tr("If you see this please contact Patrik_B");
     77node[building]{
     78throwWarning: tr("Node has a building tag");
    8879group: tr("HOT TM Validator Checker");
    8980}
     81
     82/*
     83  Too short unclassified highway (highway probably having wrong tag). Added thanks to adiatmad (dinar)
     84*/
     85way[highway=unclassified][waylength() < 50][!bridge][!tunnel] {
     86throwWarning: tr("Unclassified highway shorter than 50 meters.");
     87group: tr("HOT TM Validator Checker");
     88}
     89
    9090}}}