diff --git a/extra/data/airport.pl b/extra/data/airport.pl index d8972712f..55e6c6e84 100755 --- a/extra/data/airport.pl +++ b/extra/data/airport.pl @@ -86,6 +86,7 @@ ($) $fee = ltrim( rtrim( substr( $_, 1002, 1 ) ) ); $lightsched = ltrim( rtrim( substr( $_, 966, 7 ) ) ); $segcircle = ltrim( rtrim( substr( $_, 995, 4 ) ) ); + $icao = ltrim( rtrim( substr( $_, 1210, 7 ) ) ); $c1 = ltrim( rtrim( substr( $_, 877, 1 ) ) ); $c2 = ltrim( rtrim( substr( $_, 878, 1 ) ) ); @@ -94,7 +95,7 @@ ($) $tel = ltrim( rtrim( substr( $_, 762, 16 ) ) ); print -"$id,$lt,$ln,$type,$name,$use,$tel,$manager,$managertel,$elevation,$var,$patterna,$fuel,$custom,$beacon,$lightsched,$segcircle,$atct,$unicom,$ctaff,$fee,$state,$city\n"; +"$id,$lt,$ln,$type,$name,$use,$tel,$manager,$managertel,$elevation,$var,$patterna,$fuel,$custom,$beacon,$lightsched,$segcircle,$atct,$unicom,$ctaff,$fee,$state,$city,$icao\n"; } } close(FILE); diff --git a/extra/databases/importother.sql b/extra/databases/importother.sql index d31a4a45c..bb00bee16 100755 --- a/extra/databases/importother.sql +++ b/extra/databases/importother.sql @@ -1,4 +1,4 @@ -CREATE TABLE airports(LocationID Text,ARPLatitude float,ARPLongitude float,Type Text,FacilityName Text,Use Text,FSSPhone Text,Manager Text,ManagerPhone Text,ARPElevation Text,MagneticVariation Text,TrafficPatternAltitude Text,FuelTypes Text,Customs Text,Beacon Text,LightSchedule Text,SegCircle Text,ATCT Text,UNICOMFrequencies Text,CTAFFrequency Text,NonCommercialLandingFee Text,State Text, City Text); +CREATE TABLE airports(LocationID Text,ARPLatitude float,ARPLongitude float,Type Text,FacilityName Text,Use Text,FSSPhone Text,Manager Text,ManagerPhone Text,ARPElevation Text,MagneticVariation Text,TrafficPatternAltitude Text,FuelTypes Text,Customs Text,Beacon Text,LightSchedule Text,SegCircle Text,ATCT Text,UNICOMFrequencies Text,CTAFFrequency Text,NonCommercialLandingFee Text,State Text, City Text, Icao Text); .separator "," .import airport.csv airports