Howto:Calculate elevations: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Creation)
 
mNo edit summary
Line 1: Line 1:
There is a specific script in Flightgear, called find_elevations.pl
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 under GNU/Linux, for instance, this script is located at: <tt>/usr/local/src/flightgear/scripts/perl/examples/find_elevations.pl</tt>.


Under GNU/Linux, for instance, this script is located here : "/usr/local/src/flightgear/scripts/perl/examples/find_elevations.pl".
To use it:
* Launch FG like this : "fgfs --fdm=null --telnet=5401"
* Then, in a separate windows, lauch the script : "./find_elevations.pl".
* Enter the longitude and latitude of the object for which you want to get the elevation.


This script enables the calculation of the elevation at a specific longitude and latitude.
For instance :


To use it, launch FG like this : "fgfs --fdm=null --telnet=5401"
olivier@olivier-portable:/var/www$ ./find_elevations.pl
-3.926816 48.632452 62.37586682


Then, in a separate windows, lauch the script : "./find_elevations.pl".
For a longitude of -3.926816 and a latitude of 48.632452, the elevation is 62.37586682.


Then enter the longitude and latitude of the object for which you want to get the elevation.
Enjoy !
 
For instance :


olivier@olivier-portable:/var/www$ ./find_elevations.pl
==Related content==
-3.926816 48.632452 62.37586682
* [[Howto: Get a number of elevation offsets for a number of objects]]


=> For a longitude of -3.926816 and a latitude of 48.632452, the elevation is 62.37586682.
[[Category:Howto|Calculate elevations]]
 
Enjoy !

Navigation menu