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.

BGL Latitude / Longitude Conversion

Featured Replies

I'm having difficulties converting the lat / lon of airports & runways from the BGL format to decimal. I'm using the formulae:double airLon = br.ReadInt32() * (360.0 / ((3.0 * 0x10000000) - 180.0));double airLat = br.ReadInt32() * (180.0 / (2.0 * 0x10000000));Using Scenery0302sceneryAPX25170.bgl as an example, Dowagiac Municipal (C91) is the first airport and should have roughly 41.9929342 / -86.1280125 as its coordinates, but I am getting 48.007066436111927 / 93.872006953956259the bgl coded longitude retrieved from the example file is 209988078the bgl coded latitude retrieved from the example file is 143186653I'm not sure whether this is a C# casting (don't think so) issue, or a problem with the formulae I'm using. Any pointers would be appreciated.Cheers

Jacky,Your english is just fine!looks like 90 - my lat == correct lat and my lon - 180 == correct lonThanks for the pointers. The formulae I was using came from Winfried Orthmann's FS X BGL File Structure doc, which has been fantastically useful.Cheers

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.