Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Howto:Calculate elevations

From FlightGear wiki
Revision as of 08:35, 18 April 2014 by Elgaton (Talk | contribs) (Fixed spelling and formatting)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There is a specific script in FlightGear that enables the calculation of the elevation at a specific longitude and latitude. The script is called find_elevations.pl and is located in the FG source directory under: scripts/perl/examples/find_elevations.pl.

To use it:

  1. Launch FG like this: fgfs --fdm=null --telnet=5401
  2. Then, in a separate window, launch the script: ./find_elevations.pl.
  3. Enter the longitude and latitude of the object for which you want to get the elevation.

For instance:

olivier@olivier-portable:/var/www$ ./find_elevations.pl
-3.926816 48.632452 62.37586682

For a longitude of -3.926816 and a latitude of 48.632452, the elevation is 62.37586682.

Enjoy!

Related content