wiki:Rules/ValidatingBuildingsInHOTTMProjects

Version 13 (modified by Patrik_B, 3 years ago) ( diff )

temporary adding testing condition

meta
{
  title: "Validating tasks in HOT TM projects.";
  version: "25_2025-09-26";
  description: "Few rules for checking mistakes mostly made by beginners using ID Editor.";
  icon: "HOT_TM_logo.svg";
  author: "Patrik_B";
  link: "http://bit.ly/3zzivTi";
}


/*
  Building with layer tag with exception for building=roof
*/
*[building][building!=roof][layer]{
throwWarning: tr("_Fix - Building has layer tag");
fixRemove: "layer";
group: tr("HOT TM Validator Checker");
}

/*
  Building with different tag then yes
*/
way[building][building!=yes]{
throwWarning: tr("Building has different tag then yes");
group: tr("HOT TM Validator Checker");
}

/*
  Node with building tag
*/
node[building]{
throwWarning: tr("Node has a building tag");
group: tr("HOT TM Validator Checker");
}

/*
  Bridge without layer tag
*/
*[bridge][!layer]{
throwWarning: tr("_Fix - _Bridge is missing layer tag");
fixAdd: "layer=1";
group: tr("HOT TM Validator Checker");
}

/*
  Tunnel without layer tag. Added thanks to Filip009
*/
*[tunnel][!layer]{
throwWarning: tr("_Fix - _Tunnel is missing layer tag");
fixAdd: "layer=-1";
group: tr("HOT TM Validator Checker");
}

/*
  Highway with layer tag with exception for tunnel and bridge. Added thanks to martien-176
*/
*[highway][tunnel!=yes][bridge!=yes][layer]{
throwWarning: tr("_Fix - Highway has layer tag");
fixRemove: "layer";
group: tr("HOT TM Validator Checker");
}

/*
  Waterway with layer tag. Added thanks to martien-176
*/
*[waterway][tunnel!=culvert][layer]{
throwWarning: tr("_Fix - Waterway has layer tag");
fixRemove: "layer";
group: tr("HOT TM Validator Checker");
}

/*
  Square of a TM project taskgrid. Added thanks to Adiatma IRM-RV (dinar)
*/
*[taskId][taskStatus]{
throwError: tr("Part of project taskgrid");
group: tr("HOT TM Validator Checker");
}

/*
  Testing update system
*/
node[SpecialTagThatShouldNotBeUsuallyInOSMtoNotScareUsers=ewfjgvhewhfjke24ewf4585wef2wef88qse4gwhtzrjki86u]{
throwWarning: tr("If you see this please contact Patrik_B");
group: tr("HOT TM Validator Checker");
}

Rules_ValidatingBuildingsInHOTTMProjects.validator.mapcss, Rules_ValidatingBuildingsInHOTTMProjects.zip

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.