Changes between Initial Version and Version 1 of Rules/OSMLint


Ignore:
Timestamp:
2019-02-26T19:46:54+01:00 (7 years ago)
Author:
abalosc1
Comment:

add MapCSS checks based on OSM Lint validators

Legend:

Unmodified
Added
Removed
Modified
  • Rules/OSMLint

    v1 v1  
     1{{{
     2#!rule
     3meta
     4{
     5  title: "OSM Lint Validations";
     6  version: "[[revision]]_[[date]]";
     7  description: "Checks for errors based on OSM Lint";
     8  author: "Dave Manzer";
     9  watch-modified: true;
     10  link: "https://github.com/osmlab/osmlint/tree/master/validators";
     11}
     12
     13/* osmlint missinglayerbridges */
     14
     15way[bridge][!layer] {
     16        throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
     17        group: "OSM Lint";
     18}
     19
     20/* missing tunnel layer: not officially an osmlint check but is similar to missinglayerbridges. */
     21way[tunnel][!layer] {
     22        throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
     23        group: "OSM Lint";
     24}
     25
     26/*OSMlint missingoneways: Identifies motorway links without oneway tag , which is connected to a highway=motorway with a oneway */
     27
     28way[highway=motorway][oneway=yes] node:connection {
     29        set osmlint_oneway;
     30}
     31
     32way[highway=motorway_link][!oneway] node.osmlint_oneway,
     33way[highway=motorway_link][oneway][oneway!=yes] node.osmlint_oneway {
     34        throwWarning: tr("missing oneway on motorway_link");
     35        group: "osmlint";
     36}
     37
     38}}}