From 143385e16b15d95dc1cf4c197d86de3f7d66c7d3 Mon Sep 17 00:00:00 2001 From: Zubair Khan Date: Tue, 12 Sep 2023 10:41:02 -0400 Subject: [PATCH 1/2] Update airport.pl to add icao --- extra/data/airport.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); From a0c9a73874510200b25c993c28fe5fb5c20a4f56 Mon Sep 17 00:00:00 2001 From: Zubair Khan Date: Tue, 12 Sep 2023 10:43:18 -0400 Subject: [PATCH 2/2] Update importother.sql to add icao --- extra/databases/importother.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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