Sign in to follow this  
Guest gasebah

Airport list from FS2002 .bgl files?

Recommended Posts

I'm trying to find a list of all airports in FS2002. I need at least the airport ID, name, latitude, and longitude. Any additional info would be a bonus.I'd also love to have some sample code (C++ preferred, anything would help tho) for extracting this info directly from the .bgl files. I've read the scenery SDK, but it was less than helpful for what I wanted to do. I can't tell if it's just out of date for some info (it refers to pointers that should always be zero, but aren't in the files I'm looking in), or if it's just designed for "normal" .bgl files that are compressed. I *think* that what I need is in the AFD-style .bgl files, which according to MS are not compressed, and maybe follow a slightly different format? I think the .bgl files I want to extract data from are all in the directory "...ScenedbAFDfilesScenery".If anyone has any sample code, or tips on the format of the .bgl files in that directory, I'd very much appreciate it.Thanks!Russell

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Send me your email address. I have found a pdf file that lists all the airports and related information. It is a 6 meg file so if you have slow connection it may not easy to send. If I can remember where I obtained it I will let you know.

Share this post


Link to post
Share on other sites

If I am not mistaken you can simply use the TTools decompiler and you will receive this list in Airports.txt. Sorry if I understood you wrong.Alex

Share this post


Link to post
Share on other sites

Hi Alex, thanks for the reply.But if I understand the TTools docs correctly, the airports.txt file only includes airports being used for AI flights:"It is a list of all the airports that are referenced by AI flight plans. This is essentially all the airports that have AI traffic. Although the FS2002 world has about 22,000 airfields, only 1842 have any AI traffic."But if you have any other ideas, I'd love to hear them :-)Russell

Share this post


Link to post
Share on other sites

I see. Given the speciality of your question I already assumed that you should know about TT. Sorry.Alex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this