Howto:Calculate elevations: Difference between revisions
Jump to navigation
Jump to search
Papillon81 (talk | contribs) (improve wording and supply a direct download link) |
m (Fixed spelling and formatting) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
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: <tt> | 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: <tt>[http://mapserver.flightgear.org/git/gitweb.pl?p=flightgear;a=blob_plain;f=scripts/perl/examples/find_elevations.pl;hb=HEAD scripts/perl/examples/find_elevations.pl]</tt>. | ||
http://mapserver.flightgear.org/git/gitweb.pl?p=flightgear;a=blob_plain;f=scripts/perl/examples/find_elevations.pl;hb=HEAD | |||
To use it: | To use it: | ||
# Launch FG like this: <tt>fgfs --fdm=null --telnet=5401</tt> | |||
# Then, in a separate window, launch the script: <tt>./find_elevations.pl</tt>. | |||
# Enter the longitude and latitude of the object for which you want to get the elevation. | |||
For instance: | |||
For instance : | |||
olivier@olivier-portable:/var/www$ ./find_elevations.pl | olivier@olivier-portable:/var/www$ ./find_elevations.pl | ||
-3.926816 48.632452 62.37586682 | -3.926816 48.632452 62.37586682 | ||
For a longitude of -3.926816 and a latitude of 48.632452, the elevation is 62.37586682. | For a longitude of -3.926816 and a latitude of 48.632452, the elevation is 62.37586682. | ||
Enjoy ! | Enjoy! | ||
== Related content == | == Related content == | ||
* [[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| | [[Category:Howto|elevations calculate]] | ||
[[Category:Scenery enhancement|elevations calculate]] |
Latest revision as of 13:35, 18 April 2014
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:
- Launch FG like this: fgfs --fdm=null --telnet=5401
- Then, in a separate window, launch the script: ./find_elevations.pl.
- 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!