wiki:Rules/OSMLint
meta
{
  title: "OSM Lint Validations";
  version: "1_2019-02-26";
  description: "Checks for errors based on OSM Lint";
  author: "Dave Manzer";
  watch-modified: true;
  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] {
        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 8 weeks ago Last modified on 2019-02-26T19:46:54+01:00