wiki:Rules/OSMLint
meta
{
  title: "OSM Lint Validations";
  version: "3_2020-10-05";
  description: "Checks for errors based on OSM Lint";
  author: "Dave Manzer";
  link: "https://github.com/osmlab/osmlint/tree/master/validators";
}

/* osmlint missinglayerbridges */

way[bridge][!layer] {
        throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
        group: "OSM Lint";
}

/* missing tunnel layer: not officially an osmlint check but is similar to missinglayerbridges. */
way[tunnel][!layer][tunnel!=building_passage] {
        throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
        group: "OSM Lint";
}

/*OSMlint missingoneways: Identifies motorway links without oneway tag , which is connected to a highway=motorway with a oneway */

way[highway=motorway][oneway=yes] node:connection {
        set osmlint_oneway;
}

way[highway=motorway_link][!oneway] node.osmlint_oneway,
way[highway=motorway_link][oneway][oneway!=yes] node.osmlint_oneway {
        throwWarning: tr("missing oneway on motorway_link");
        group: "osmlint";
}

Rules_OSMLint.validator.mapcss, Rules_OSMLint.zip

Last modified 4 years ago Last modified on 2020-10-05T18:15:03+02:00
Note: See TracWiki for help on using the wiki.