-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help generating airport diagrams #2
Comments
So I added some fixes and now the generation starts correctly but does not succeed. The output is the following
Was this georeferencing working before? Here is the full output
|
Jan, |
That would be great thanks 🙏 |
In the meantime, I've added an old database from the 1601 cycle so you can see what the output is and whether it would ultimately be of any use to you. |
Hi,
./download_dtpp.py
Here there is a logic to create a .png in the GeoReferencePlates/load_dtpp_metadata.pl Lines 438 to 444 in bb146d9
The parsed coordinates seem to be ok-ish
but |
I noticed that when I use the the pdf from the example directory ( ./georeference_airport_diagrams_via_db.pl -p -s -aSFO -c1801 dtpp-1801/
Supplied airport ID: SFO
Supplied cycle: 1801
Processing 1 charts
SW-2, SFO, 70000, APD, AIRPORT DIAGRAM, , CA-SFO-AIRPORT-DIAGRAM.PDF, , N, , CA
dtpp-1801/CA-SFO-AIRPORT-DIAGRAM.PDF
LonRegex3: Degrees: 188.196800, minutes: 22, declination: W && 123, airportLongitudeDeclination, W
LonRegex3: Degrees: 318.491400, minutes: 23, declination: W && 123, airportLongitudeDeclination, W
LonRegex3: Degrees: 448.498000, minutes: 24, declination: W && 123, airportLongitudeDeclination, W
Setting orientation to landscape
0.000029114844969, -0.000029114844969, -122.4208174, 37.6416227, -122.3444492, 37.6020556, 1.93009343621357
$pixelSizeX, $pixelSizeY, $upperLeftLon, $upperLeftLat, $xPixelSkew, $yPixelSkew
2.6982277965e-09, -3.04539344382e-21, -122.344462421, 37.6416104257, -3.08567286696e-05, -2.45352809145e-05
Sucess!
Success: 1, Fail: 0, No Text: 0, No Points: 0, Chart: 1/1 I believe the pdf text format changed and the reg exp don't match anymore the coordinates. This is the debug output when I use the sample
and this when I use the latest cycle for the same airport
|
The program is looking for regular expressions that represent how certain elements of the diagram are drawn. If how these are rendered has changed since I worked with it last then the program will no longer work.
… On Feb 5, 2018, at 2:59 AM, Jan Chaloupecky ***@***.***> wrote:
I noticed that when I use the the pdf from the example directory (CA-SFO-AIRPORT-DIAGRAM.PDF, it works correctly.
./georeference_airport_diagrams_via_db.pl -p -s -aSFO -c1801 dtpp-1801/
Supplied airport ID: SFO
Supplied cycle: 1801
Processing 1 charts
SW-2, SFO, 70000, APD, AIRPORT DIAGRAM, , CA-SFO-AIRPORT-DIAGRAM.PDF, , N, , CA
dtpp-1801/CA-SFO-AIRPORT-DIAGRAM.PDF
LonRegex3: Degrees: 188.196800, minutes: 22, declination: W && 123, airportLongitudeDeclination, W
LonRegex3: Degrees: 318.491400, minutes: 23, declination: W && 123, airportLongitudeDeclination, W
LonRegex3: Degrees: 448.498000, minutes: 24, declination: W && 123, airportLongitudeDeclination, W
Setting orientation to landscape
0.000029114844969, -0.000029114844969, -122.4208174, 37.6416227, -122.3444492, 37.6020556, 1.93009343621357
$pixelSizeX, $pixelSizeY, $upperLeftLon, $upperLeftLat, $xPixelSkew, $yPixelSkew
2.6982277965e-09, -3.04539344382e-21, -122.344462421, 37.6416104257, -3.08567286696e-05, -2.45352809145e-05
Sucess!
Success: 1, Fail: 0, No Text: 0, No Points: 0, Chart: 1/1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
yep :) I'm trying to understand how to parsing logic works to see if I can fix it |
So the way I did it originally was to load PDFs into Inkscape and inspect objects there to find out what the commands were to draw them and then create regexes to find those commands in the expanded form of the PDFs
… On Feb 5, 2018, at 7:50 AM, Jan Chaloupecky ***@***.***> wrote:
yep :) I'm trying to understand how to parsing logic works to see if I can fix it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hmm they appear to be the same but the output of the
the new plate does not find anything
|
ok, getting closer:
the old pdf not
so that's probably why the reg exp does not match. Also how the actual text words are split in the list of |
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: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.db
is empty.GeoReferencePlates/georeferenceAirportDiagramsViaDb.pl
Lines 137 to 139 in c89f1ca
Where is the
locationinfo.db
supposed to come from?cheers
The text was updated successfully, but these errors were encountered: