wiki:Rules/ValidatingBuildingsInHOTTMProjects

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

--

meta
{
  title: "Validating buildings 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("Building has layer tag");
fixRemove: "layer";
group: tr("_Fix");
}

/*
  Building with different tag then yes
*/
way[building][building!=yes]{
throwWarning: tr("Building has different tag then yes");
fixRemove: "building";
fixAdd: "building=yes";
group: tr("_Fix");
}

/*
  Node with building tag
*/
node[building]{
throwWarning: tr("Node has a building tag");
fixDeleteObject: this;
group: tr("_Fix");
}

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

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

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

/*
  Waterway with layer tag. Added thanks to martien-176
*/
*[waterway][layer]{
throwWarning: tr("Waterway has layer tag");
fixRemove: "layer";
group: tr("_Fix");
}

Rules_ValidatingBuildingsInHOTTMProjects.validator.mapcss, Rules_ValidatingBuildingsInHOTTMProjects.zip

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.