Howto:Calculate elevations: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
m (Categorize)
Line 15: Line 15:
* [[Howto: Get a number of elevation offsets for a number of objects]]
* [[Howto: Get a number of elevation offsets for a number of objects]]


[[Category:Howto|Calculate elevations]]
[[Category:Howto|elevations calculate]]
[[Category:Scenery enhancement|elevations calculate]]

Revision as of 12:03, 28 February 2012

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, lauch 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