Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
Line 390: Line 390:
{{Nasal doc
{{Nasal doc
|syntax = geo.elevation(lat, lon[, max_alt]);
|syntax = geo.elevation(lat, lon[, max_alt]);
|text = Returns the elevation in metres of a certain point on the scenery. See also {{func link|geodinfo()}} (which is used internally).
|text = Returns the elevation in metres of a certain point on the scenery. See also {{func link|geodinfo()}} (which is used internally).<BR>If the terrain altitude has not yet been loaded in the area identified by the coordinates, the function returns the ''nil'' value.
|param1 = lat
|param1 = lat
|param1text = Mandatory latitude coordinate.
|param1text = Mandatory latitude coordinate.
Line 401: Line 401:
printf("Terrain elevation: %i m", elev);
printf("Terrain elevation: %i m", elev);
}}
}}
'''Note'''
:If the terrain altitude has not yet been loaded in the area identified by the coordinates, the function returns the ''nil'' value.


=== format() ===
=== format() ===
408

edits

Navigation menu