| | 1 | {{{ |
| | 2 | #!rule |
| | 3 | meta |
| | 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 | |
| | 15 | way[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. */ |
| | 21 | way[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 | |
| | 28 | way[highway=motorway][oneway=yes] node:connection { |
| | 29 | set osmlint_oneway; |
| | 30 | } |
| | 31 | |
| | 32 | way[highway=motorway_link][!oneway] node.osmlint_oneway, |
| | 33 | way[highway=motorway_link][oneway][oneway!=yes] node.osmlint_oneway { |
| | 34 | throwWarning: tr("missing oneway on motorway_link"); |
| | 35 | group: "osmlint"; |
| | 36 | } |
| | 37 | |
| | 38 | }}} |