TmmT_Terrain_Reader_Elevation_Proc
Note: Requires Terrain Modeling Module functionality
Abstract
Callback: Called to obtain the elevation of a given location.
Syntax
<terrain_reader_elevation_proc_name> (terrain_source, latitude, longitude)
| Argument | Type | Description |
|---|---|---|
terrain_source |
struct TmmT_Terrain_Source * |
Terrain source of interest (see TmmT_Terrain_Reader_Load_Proc for details) |
latitude |
double |
Latitude of location |
longitude |
double |
Longitude of location |
Return Value
double
Elevation for the specified latitude and longitude or one of the symbolic constants listed in Details.
Header
tmm.h
Details
This callback should read the terrain source data file and return either the elevation at the specified location or one of these symbolic constants:
- TMMC_ELEV_DATA_MISSING—the data source does not have an elevation for that location
- TMMC_ELEV_UNKNOWN—an error occurred
Purpose
Callback used to obtain the elevation of a given location.