Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Airport list from FS2002 .bgl files?

Featured Replies

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

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.

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

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

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.