Global Mapper SDK
GM_GetLocationElevationEx
Retrieves the elevation at a given location from a provided layer or from the list of currently loaded elevation layers (topmost elevation layer first).
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 GM_GetLocationElevationEx
(
GM_LayerHandle_t32* aLayerList, // IN: List of layers to search for points or NULL for all terrain layers
uint32 aLayerCount,// IN: Number of layers in list (0 for all)
double aXCoord, // IN: X coord in current projection
double aYCoord, // IN: Y coord in current projection
float* aElev // OUT: Elevation at location in meters
);