GM_GetLocationElevationList

Retrieves the elevation at each location from the provided layer(s) or from the list of currently loaded elevation layers (topmost elevation layer first). Any no-data values are filled in with GM_INVALID_ELEV_VALUE. If none of the locations have a valid elevation, GM_Error_NoDataAtLocation is returned.

Syntax

C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GetLocationElevationList
    (
    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)
    const GM_Point_t*       aLocList,   // IN: List of 2 locations (can be GM_Point_t or any type that is 16 bytes with X and Y as doubles)
    float*                  aElevList,  // OUT: array to hold elevation in meters for each location provided (GM_INVALID_ELEV_VALUE if none found)
    uint32                  aLocCount,  // IN: how many locations are in the list
    void*                   aReserved   // IN: reserved for future use (must be NULL)
    )