Opened 8 years ago
Closed 6 years ago
#15107 closed enhancement (fixed)
[Patch] Check runways,aerodromes for missing tags in validator
| Reported by: | Owned by: | team | |
|---|---|---|---|
| Priority: | normal | Milestone: | 19.09 |
| Component: | Core validator | Version: | |
| Keywords: | runway aerodrome | Cc: | Klumbumbus |
Description (last modified by )
They aren't well adapted for global use but the simple rules I use locally flag many easy improvements:
*[aeroway=aerodrome][!faa]{ group: tr("Airport Tagging"); throwWarning: tr("Airport without faa code."); } *[aeroway=helipad][!faa]{ group: tr("Airport Tagging"); throwWarning: tr("Helipad without faa code."); } *[aeroway=aerodrome][!icao][faa!~/\d/], *[aeroway=aerodrome][!iata][faa!~/\d/]{ group: tr("Airport Tagging"); throwWarning: tr("Airport without {0} code.", "{1.key}"); } *[aeroway=runway][!ref], *[aeroway=runway][!surface]{ group: tr("Airport Tagging"); throwWarning: tr("Runway missing {0}.", "{1.key}"); }
The [faa!~/\d/] selector suppresses the warnings for small US airports, where the FAA usually assigns an identifier that contains a number.
Attachments (0)
Change History (9)
comment:1 by , 8 years ago
| Description: | modified (diff) |
|---|---|
| Keywords: | runway aerodrome added |
| Summary: | Check runways,aerodromes for missing tags in validator → [Patch] Check runways,aerodromes for missing tags in validator |
comment:2 by , 8 years ago
comment:3 by , 8 years ago
| Cc: | added |
|---|
comment:4 by , 8 years ago
Wrong icao count: 501 objects http://overpass-turbo.eu/s/qLP (most in USA)
Wrong iata count: 111 objects¹ (most in USA too)
¹ overpass site isn't creating a short link, but just use:
[out:json][timeout:9000]; ( node["iata"]["iata"!~"^[A-Z]{3}$"]; way["iata"]["iata"!~"^[A-Z]{3}$"]; relation["iata"]["iata"!~"^[A-Z]{3}$"]; ); out count;
Maybe create an external validation rule for deeper aeroway analysis?
For example, we could validate if icao starts with a proper character https://upload.wikimedia.org/wikipedia/commons/3/3b/ICAO-countries.png
We could see if icao/iata are being used only with aeroway=aerodrome (and not together with the runway), etc
comment:5 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:6 by , 8 years ago
Hm, there are "pseudo-icao codes", which would end as false positives if checked against /^[A-Z]{4}$/ https://en.wikipedia.org/wiki/International_Civil_Aviation_Organization_airport_code#Pseudo_ICAO-codes
comment:7 by , 8 years ago
But then it's something else (another code, another acronym, another key, etc) and not ICAO.
comment:8 by , 6 years ago
| Milestone: | → 19.09 |
|---|



Include
[inside("US")]in thefaatests;Globally
icaocould be verified if it's/^[A-Z]{4}$/andiatafor/^[A-Z]{3}$/, but overpass isn't helping right now to count how many objects have a wrongicaooriatacode (I will update it later)