Modify

Opened 7 years ago

Closed 5 years ago

#15107 closed enhancement (fixed)

[Patch] Check runways,aerodromes for missing tags in validator

Reported by: maxerickson@… Owned by: team
Priority: normal Milestone: 19.09
Component: Core validator Version:
Keywords: runway aerodrome Cc: Klumbumbus

Description (last modified by Klumbumbus)

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.

osmwiki:Tag:aeroway=aerodrome
osmwiki:Tag:aeroway=helipad

Attachments (0)

Change History (9)

comment:1 by Don-vip, 7 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 naoliv, 7 years ago

Include [inside("US")] in the faa tests;

Globally icao could be verified if it's /^[A-Z]{4}$/ and iata for /^[A-Z]{3}$/, but overpass isn't helping right now to count how many objects have a wrong icao or iata code (I will update it later)

comment:3 by Klumbumbus, 7 years ago

Cc: Klumbumbus added

comment:4 by naoliv, 7 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 Klumbumbus, 7 years ago

Description: modified (diff)

comment:6 by Klumbumbus, 7 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

Last edited 7 years ago by Klumbumbus (previous) (diff)

comment:7 by naoliv, 7 years ago

But then it's something else (another code, another acronym, another key, etc) and not ICAO.

comment:8 by Klumbumbus, 5 years ago

Milestone: 19.09

comment:9 by Klumbumbus, 5 years ago

Resolution: fixed
Status: newclosed

In 15325/josm:

fix #15107 - add various airport validator rules (based on patches by maxerickson and naoliv)

  • warn about iata and icao without aeroway=helipad or aeroway=aerodrome
  • warn about wrong iata and icao codes
  • warn about aeroway=helipad or aeroway=aerodrome without faa (info level, US only)
  • warn about aeroway=helipad or aeroway=aerodrome without icao and iata (info level, US only and only if faa does not contain nunbers, which indicates small airports)
  • warn about aeroway=runway without ref and surface (info level)
  • enhance Helipad preset

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.