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

Problem with FSX Airport Data

Discussion in 'Tools programming' started by wxman, 10/4/08.

  1. wxman

    wxman

    Joined:
    10/4/08
    Messages:
    5
    Country:
    us-arizona
    I am creating a flight planner and I am using the data from the bgl files from FSX.

    When I convert them to deg, min, sec the flight plan .pln file I make for FSX is failing. It is because the location information is incorrect for the Airports, VOR's, etc.

    Any help on what I should us in the BGL files to make sure this works???

    Thank you much for anyones help!!!

    Sincerely,

    WXMAN
  2. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17/9/05
    Messages:
    23,281
    Country:
    wales
    Are you extracting the data yourself or using another program to extract it?
  3. wxman

    wxman

    Joined:
    10/4/08
    Messages:
    5
    Country:
    us-arizona
    I extracted it using the BGL2XML program and imported the data into a SQL database.

    But I only used the Airport element of the xml. I noticed a <Start> element, should I have used that?
  4. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17/9/05
    Messages:
    23,281
    Country:
    wales
    Depends on what you are trying to do but Starts are usually placed at each end of a runway. I assume that the extracted co-ordinate data is in decimal format with a point decimal separator? As far as I know nothing in FS can handle a comma separator so make sure you are not creating any when you convert the decimal coordinate. Also do you need to make that conversion?
  5. wxman

    wxman

    Joined:
    10/4/08
    Messages:
    5
    Country:
    us-arizona
    Let me show you what I am doing, because I could totally have this wrong.

    Example: KSEA

    lat
    47.4489999935031

    long
    -122.309305518866

    This is how I was told how to figure this out for the .pln file.

    Deg = N47
    Min = (.4489999935031 * 60) = 26'
    Sec = (.9399999.... * 60) = 56.40"

    Am I doing this right? Now mind you this is the Airport Lat/Lont and not the runways or start.

    What Lat/Lont does the .pln use?

    Thank you for your help.
  6. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17/9/05
    Messages:
    23,281
    Country:
    wales
    You calculation for lat/lon appears correct - I do not know about the format of pln files - maybe someone else does. Have you tried using the decimal values in the pln file?
  7. wxman

    wxman

    Joined:
    10/4/08
    Messages:
    5
    Country:
    us-arizona
    I have and it seems that it has to be unique.

    Thank you for you help though.
  8. Slopey

    Slopey

    Joined:
    15/5/07
    Messages:
    26
    I've done the same thing and not had a problem with it - the plan format I use (FS2004 but works with FSX no problem) is:

    Code:
    [flightplan]
    AppVersion=9.0.30612
    title=My Flight Plan
    description=KLAL, KGIF
    Type = IFR
    routetype = 0
    cruising_altitude = 10000
    departure_id=KLAL, N27 59.33499, W082 1.11333, 141.9948
    destination_id=KGIF, N28 3.77500, W081 45.19834, 145.0131
    destination_name= KGIF
    departure_name = KLAL
    waypoint.0=, KLAL, , KLAL, A, N27 59.33499, W082 1.11333, 141.9948, 
    waypoint.1=, KGIF, , KGIF, A, N28 3.77500, W081 45.19834, 145.0131, 
    gpsWaypoints = 2
    Using the above format seems to work ok, the last item in the waypoint arrays is the altitude.

Share This Page