1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Render airport diagram onto map

Discussion in 'Tools programming' started by Nudge, 15/9/08.

  1. Nudge

    Nudge

    Joined:
    5/8/07
    Messages:
    72
    Country:
    australia
    I've seen in applications such as FlightSim Commander and FS Flight Keeper they draw airport diagrams onto maps which scale as you zoom in or out.

    They include information such as runway, parking, taxiways, etc.

    I was wondering if anyone knows how this might be done?

    Here is an image from FS Flight Keeper
    [​IMG]
    Last edited: 15/9/08
  2. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17/9/05
    Messages:
    24,635
    Country:
    wales
    Clearly programs like AFCAD2, AFX, FSX Planner and ADE all do this. As the programmer for ADE I have a pretty good idea how it is done :) What sort of information are you actually looking for?

    Very simply the model or data is a tree of objects making up the airport. Each one contains information about its position in the world (or relative to a fixed point such as the ARP). Each type of object in the world has a graphical object that renders the information about it to a canvas. Cameras on the canvas can then be used to zoom, pan, rotate etc. Objects can be drawn or not drawn depending on user request or drawn highlighted etc by having different drawing modes in the graphic object.
  3. Nudge

    Nudge

    Joined:
    5/8/07
    Messages:
    72
    Country:
    australia
    Thanks Jon.

    I was just going to have a play around with this type of programming, I've never done anything like that before and thought it might be fun to create a class library that will render airport diagrams.
  4. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17/9/05
    Messages:
    24,635
    Country:
    wales
    What language do you work in?
  5. Gypsy Baron

    Gypsy Baron

    Joined:
    4/3/07
    Messages:
    152
    Country:
    us-california
    Should you pursue this for a releasable product for
    in cockpit use please include the capability to
    display the airport diagrams that are used, those from
    Addon Scenery locations, not simply the default diagrams.

    I recently installed a gauge, Airport Chart Gauge by
    Holger Maass, that displays all the airport info but
    it's main shortcoming is that it only uses default
    airport data and the majority of the airports I "use"
    are modified to add parking, correct signage, etc,
    thus that application falls short.

    Paul
  6. Nudge

    Nudge

    Joined:
    5/8/07
    Messages:
    72
    Country:
    australia
    C# or VB.NET, depending on the size of the project, vb for smaller projects.

Share This Page