Hi again :)
I'm trying to build the geo pdfs for the airports. It seems tough that the DTPP does not download automatically.
Calling /load_dtpp_metadata.pl . 1801 explicitly exits because this:
|
#URL of the DTPP catalog |
|
# my $dtpp_url = |
|
# "http://aeronav.faa.gov/d-tpp/$cycle/xml_data/d-TPP_Metafile.xml"; |
|
my $dtpp_url = "https://nfdc.faa.gov/webContent/dtpp/current.xml"; |
|
|
|
my ( $count, $downloadedCount, $deletedCount, $changedCount, $addedCount ); |
|
|
|
my %countHash; |
|
|
|
if ( -e $TPP_METADATA_FILE ) { |
|
say "Using existing local metafile: $TPP_METADATA_FILE"; |
|
} |
|
else { |
|
die |
|
"Unable to load dTPP metadata catalog: $TPP_METADATA_FILE does not exist locally"; |
|
|
|
# print "Downloading the d-TPP metafile: " . $dtpp_url . "..."; |
|
# |
|
# # my $ret = 200; |
|
# my $ret = getstore( $dtpp_url, $TPP_METADATA_FILE ); |
|
# |
|
# if ( $ret != 200 ) { |
|
# die "Unable to download d-TPP metadata."; |
|
# } |
|
# print "done\n"; |
|
|
|
} |
The commented code seems to download the catalog though so I wonder why is it commented.
After that I try to generate the airport diagram for one airport using
./georeferenceAirportDiagramsViaDb.pl -p -s -aSBP ./dtpp-1801/
Supplied airport ID: SBP
Processing 1 charts
SW-3, SBP, 70000, APD, AIRPORT DIAGRAM, , 00989AD.PDF, , N, , CA
./dtpp-1801/00989AD.PDF
DBD::SQLite::db prepare failed: no such table: airports at ./georeferenceAirportDiagramsViaDb.pl line 557.
DBD::SQLite::db prepare failed: no such table: airports at ./georeferenceAirportDiagramsViaDb.pl line 557.
The file can be found but not locationinfo.db is empty.
|
$dbh = DBI->connect( "dbi:SQLite:dbname=locationinfo.db", |
|
"", "", { RaiseError => 1 } ) |
|
or croak $DBI::errstr; |
Where is the locationinfo.db supposed to come from?
cheers
Hi again :)
I'm trying to build the geo pdfs for the airports. It seems tough that the DTPP does not download automatically.
Calling
/load_dtpp_metadata.pl . 1801explicitly exits because this:GeoReferencePlates/load_dtpp_metadata.pl
Lines 88 to 114 in c89f1ca
The commented code seems to download the catalog though so I wonder why is it commented.
After that I try to generate the airport diagram for one airport using
The file can be found but not
locationinfo.dbis empty.GeoReferencePlates/georeferenceAirportDiagramsViaDb.pl
Lines 137 to 139 in c89f1ca
Where is the
locationinfo.dbsupposed to come from?cheers