Board index FlightGear Development New features

Airport Diagram Generator

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Airport Diagram Generator

Postby brisa » Sun Jul 12, 2009 8:50 am

I have set up a java application that creates pdf airport diagrams using only Flightgear data.

Generated diagrams (Both in png and pdf) contains:
* Airport ID and name
* a schematic view of the airport layout (Runways and taxiways)
* All frequencies regarding the airport (ILS, Tower, Gnd, Atis ....)
* Nearest Navaid information and heading to/from
* True and magnetic compass indication.
* Runways length

The software is based upon the Kelpie flight planner code.

Download:
Src: http://assistenza.larasrl.net/brisa/fgfs/airportPainter-src.tar.gz
Executable (Platform indipendent): http://assistenza.larasrl.net/brisa/fgfs/AirportPainter.jar

Some example of generated diagrams:
KSFO: http://assistenza.larasrl.net/brisa/fgfs/KSFO.pdf
Image

KOAK: http://assistenza.larasrl.net/brisa/fgfs/KOAK.pdf
Image

LIMC: http://assistenza.larasrl.net/brisa/fgfs/LIMC.pdf
Image

You can:
1) Generate a single airport diagram:
java -jar AirportPainter.jar -fg-root=/path/to/your/fgfs/data -airport=KSFO
2) Generate multiple airport diagrams within an area:
java -jar AirportPainter.jar -fg-root=/path/to/your/fgfs/data -range=20 -airport=KSFO
3) Start the application in graphical mode:
java -jar AirportPainter.jar
Last edited by brisa on Tue Sep 20, 2011 4:27 pm, edited 2 times in total.
User avatar
brisa
 
Posts: 269
Joined: Fri May 16, 2008 7:32 pm
Location: Olgiate Comasco (CO) Italy
Callsign: brisa

Re: Airport Diagram Generator

Postby gooneybird » Sun Jul 12, 2009 10:05 am

Thanks brisa, works brilliantly, this will be great for working out approaches etc. for fly-ins :D
gooneybird
 
Posts: 2971
Joined: Sat May 31, 2008 1:57 pm

Re: Airport Diagram Generator

Postby WooT » Sun Jul 12, 2009 10:37 am

oo ! this is really nice :D

It would be nice to have the runway headings displayed on the runways, too.
I like to know these on ils approaches.

Congratulations !!
WooT
 
Posts: 92
Joined: Tue Mar 17, 2009 4:09 pm

Re: Airport Diagram Generator

Postby D-79 » Sun Jul 12, 2009 10:57 am

Works great, thanks! Headings on the runways would be nice indeed, but anyway - already a wonderful help.

David
callsign: D-79
Scenery contributions: EDDM, EDDP, LOWI, ENAL and ENSD, North Sea oil platforms, taxiway signs at EDDF and EDDT
User avatar
D-79
 
Posts: 496
Joined: Mon Jun 08, 2009 10:24 am
Location: EDDT (Berlin, Germany)
Version: GIT
OS: Win 7

Re: Airport Diagram Generator

Postby Fahim Dalvi » Sun Jul 12, 2009 11:33 am

Just Checked it out on TNCM, Beautiful Work!
Fahim Imaduddin Dalvi
Tracker, Flight Gallery
User avatar
Fahim Dalvi
 
Posts: 1286
Joined: Sun Oct 14, 2007 1:08 pm
Location: Qatar
Callsign: Fahim
Version: 2018.2.2
OS: MacOS

Re: Airport Diagram Generator

Postby martin » Sun Jul 12, 2009 11:45 am

Hi Francesco,

brisa wrote:I have set up a java application that creates pdf airport diagrams using only Flightgear data.


Oh, _that_ one is a clever solution.

If I may add an idea or two, to keep you busy .... ;-)

Cheers, Martin.
FlightGear Scenery Release Manager
martin
 
Posts: 666
Joined: Thu Feb 15, 2007 9:03 am
Location: EDLN

Re: Airport Diagram Generator

Postby brisa » Sun Jul 12, 2009 8:07 pm

martin wrote:If I may add an idea or two, to keep you busy .... ;-)

And you did it !
martin wrote:http://www.jeppesen.com/personal-solutions/aviation/bottlang-airfield-manual.jsp
.... and check the "Sample Approach and Airport Plate" PDF. Maybe you'd like to mimic their layout to add even more realism to 'your' charts


That is a good suggestion, however I found over internet various diagram formats, for example here: http://en.wikipedia.org/wiki/File:SFO_map.png now I don't know exactly what path to follow, I think I will just listen to suggestion and add features according.

martin wrote:All the data we're storing in our database at http://mapserver.flightgear.org/ for rendering charts like this one: http://mapserver.flightgear.org/map/?lon=8.72811&lat=45.63061&zoom=14&layers=0B0000TTTFFFFFFTFF

This can be a nice Idea, maybe not for the Airport diagram itself, but to create a second page, with a lower zoom with the airport at the centre (Very little, just runways) and surrounding navaids with code, freqs, headings. All this with the schematic background of that link.


But I already got runways and taxys from apt.dat.gz file, what I need is xml data of terrain, how do I get theme ?

Thanks all for suggestion, I already updated the program, now for example it can show:
* displaced threshold i.e. >>>>>|
* tower position
* windsocks position
* black runways for hard surface
* white runways for "grass" surface

What I would like to implement is lighting guidance system as shown for the runway 07 of the Jeppesen guide.
I was even thinking to a second page with more airport details (If available from FlightGear).
User avatar
brisa
 
Posts: 269
Joined: Fri May 16, 2008 7:32 pm
Location: Olgiate Comasco (CO) Italy
Callsign: brisa

Re: Airport Diagram Generator

Postby martin » Mon Jul 13, 2009 2:22 pm

Hi Francesco,

brisa wrote:
martin wrote:http://www.jeppesen.com/personal-solutions/aviation/bottlang-airfield-manual.jsp
.... and check the "Sample Approach and Airport Plate" PDF. Maybe you'd like to mimic their layout to add even more realism to 'your' charts


That is a good suggestion, however I found over internet various diagram formats, for example here: http://en.wikipedia.org/wiki/File:SFO_map.png now I don't know exactly what path to follow, I think I will just listen to suggestion and add features according.


This layout is specific to the charts issued by FAA's NACO, like every national air safety organization has their own layout - in fact this one is a raster conversion of:

http://naco.faa.gov/d-tpp/0907/00375AD.PDF

.... whereas the Jeppesen charts look almost the same for whichever country you choose (as far as I've seen, please correct me if I'm wrong) and are a quite popular source of information among VFR as well as IFR pilots last but not least thanks to their unified look and feel.

brisa wrote:
martin wrote:.... is also available on-line as GML (an 'application' of XML) via the Web Feature Service. Just to give you an example, these are runways at LIMC (I have to admit that the URL's are a bit longish ....):

But I already got runways and taxys from apt.dat.gz file, what I need is xml data of terrain, how do I get theme ?


Indeed, you're getting all this via the 'apt.dat' parser as well, yet the MapServer GML might ease the transition to access the v8.50 format - via our 'translation': No matter wich format the source is using, the 'technical' representation via the MapServer site will always be the same. As an alternative, distributing the geometries as Shapefiles is an option as well.

Please specify which of the other layers you'd like to include.

Just an idea .... Cheerio, Martin.
FlightGear Scenery Release Manager
martin
 
Posts: 666
Joined: Thu Feb 15, 2007 9:03 am
Location: EDLN

Re: Airport Diagram Generator

Postby statto » Mon Jul 13, 2009 4:25 pm

Very good work!

I also think the airfield layout generation could be an important first step for a taxiway sign creation program.
Custom Scenery available from http://www.stattosoftware.com/flightgear
statto
 
Posts: 2112
Joined: Fri Jan 25, 2008 9:57 pm

Re: Airport Diagram Generator

Postby brisa » Mon Jul 13, 2009 7:15 pm

martin wrote:... yet the MapServer GML might ease the transition to access the v8.50 format - via our 'translation': No matter wich format the source is using, the 'technical' representation via the MapServer site will always be the same. As an alternative, distributing the geometries as Shapefiles is an option as well.


Oh, so there is a plan to move to the 8.50 format ? (I hope so).
I gave a look at the mapserver, I tried this link (I don't know if it is a correct procedure):
http://mapserver.flightgear.org/download.psp

but I always get an error, I select:
North:44
West:7
East: 9
South:46
and v0_urban (For example)

Am I doing something wrong ? (Probably yes) So I followed the link:http://mapserver.flightgear.org/dlaction.psp?xmin=<degree>&xmax=<degree>&ymin=<degree>&ymax=<degree>&pgislayer=<layername>
using for example this link: http://mapserver.flightgear.org/dlaction.psp?xmin=44&xmax=46&ymin=7&ymax=9&pgislayer=v0_urban but I still almost empty zip files.

Well, using the mapserver will provide me all the data and always in the same format, just now I gave a look again here: http://mapserver.flightgear.org/ms?Service=WFS&Version=1.0.0&request=GetFeature&Typename=apt_runway&Filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eicao%3C/PropertyName%3E%3CLiteral%3ELIMC%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E and this is really perfect and complete, I will play with this urls more to extract more and more data, where can I find some explanation of the Typename property ? I tried to replace it with apt_navaid and apt_fix but I got only server errors.

btw, there is much to play with, thanks Martin for suggestions !
Cheers
Francesco
User avatar
brisa
 
Posts: 269
Joined: Fri May 16, 2008 7:32 pm
Location: Olgiate Comasco (CO) Italy
Callsign: brisa

Re: Airport Diagram Generator

Postby martin » Mon Jul 13, 2009 9:19 pm

brisa wrote:Oh, so there is a plan to move to the 8.50 format ? (I hope so).
I gave a look at the mapserver, I tried this link (I don't know if it is a correct procedure):
http://mapserver.flightgear.org/download.psp

but I always get an error, I select:
North:44
West:7
East: 9
South:46
and v0_urban (For example)


Sooner or later we're almost certainly going to use v8.50 for our airfields. It's just that nobody knows when this is going to be :-)
For the coordinates, try swapping North and South, or ....

brisa wrote:Am I doing something wrong ? (Probably yes) So I followed the link:http://mapserver.flightgear.org/dlaction.psp?xmin=<degree>&xmax=<degree>&ymin=<degree>&ymax=<degree>&pgislayer=<layername>
using for example this link: http://mapserver.flightgear.org/dlaction.psp?xmin=44&xmax=46&ymin=7&ymax=9&pgislayer=v0_urban but I still almost empty zip files.


.... try swapping "x" and "y". "x" is East-West, "y" is North-South.
Maybe I should change the setup and call them minlon/maxlon/minlat/maxlat to make it less error-prone.

brisa wrote:btw, there is much to play with, [...]


Consider this to be intentional :-)

Martin.
FlightGear Scenery Release Manager
martin
 
Posts: 666
Joined: Thu Feb 15, 2007 9:03 am
Location: EDLN

Re: Airport Diagram Generator

Postby MAKG » Wed Jul 15, 2009 4:57 am

Dude, that's amazing.

One thing I'd suggest is to publish the nearest N navaids, or all within 50 miles or somesuch. You need more than one. When flying the old fashioned way (no GPS), you use a second navaid with much different radial (in NAV2) to find a specific point. You can use DME for this, but the map doesn't show DME points either (and it's a good idea to have more than one method in use).

And localizer frequencies where available would be useful.

DAFIF has electronic-encoded terminal procedures as well, including instrument approaches, STARs, and departures. Does FlightGear have those in its data anywhere? Pretty much anything in the Jeppeson plates (and in the FLIPbooks), excepting the occasional terrain plates, is in DAFIF somewhere.
MAKG
 
Posts: 1156
Joined: Sun Oct 19, 2008 6:11 pm
Location: California Central Coast

Re: Airport Diagram Generator

Postby brisa » Fri Jul 17, 2009 7:59 pm

MAKG wrote:Dude, that's amazing. One thing I'd suggest [...]


Thank you very much, all the suggestion you wrote are in the "to do list", and I am working out something with Martin for the large view too.
MAKG wrote:DAFIF has electronic-encoded terminal procedures as well, including instrument approaches, STARs, and departures. Does FlightGear have those in its data anywhere? Pretty much anything in the Jeppeson plates (and in the FLIPbooks), excepting the occasional terrain plates, is in DAFIF somewhere.

I don't know exactly, but I don't think Fgfs has those information.

Meanwhile I have done a little updated of the program, now you can see lights painted on the diagram, I will try to differ theme for any kind of light guidance system.
User avatar
brisa
 
Posts: 269
Joined: Fri May 16, 2008 7:32 pm
Location: Olgiate Comasco (CO) Italy
Callsign: brisa

Re: Airport Diagram Generator

Postby MAKG » Fri Jul 17, 2009 9:25 pm

FYI, here is the standard symbology for US FLIPbook plates (like what you get at airnav.com):

http://www.procockpit.com/chart%20pdf/7th_IAP_Symbols.pdf

I'll probably have a canned solution for this in hand within a few months, courtesy USAF, called "Portable Flight Planning System," that works with DAFIF. I really wish I could contribute it, but it's likely to be thoroughly impossible, as it's a military flight planning tool.

But folks have thought of it. It coughs up detailed flight plans in XML, including all the navaid frequencies and so on.
MAKG
 
Posts: 1156
Joined: Sun Oct 19, 2008 6:11 pm
Location: California Central Coast

Re: Airport Diagram Generator

Postby martin » Fri Jul 17, 2009 10:44 pm

MAKG wrote:I'll probably have a canned solution for this in hand within a few months, courtesy USAF, called "Portable Flight Planning System," that works with DAFIF.


Did you pull a copy of DAFIF before they closed it up ? If so, would you share it with us ?
Otherwise it's pretty pointless to talk about DAFIF all the time as long as we don't have it ....

Martin.
FlightGear Scenery Release Manager
martin
 
Posts: 666
Joined: Thu Feb 15, 2007 9:03 am
Location: EDLN

Next

Return to New features

Who is online

Users browsing this forum: No registered users and 2 guests