GM_Utility .GetLocationElevationList Method

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.

Namespace:GlobalMapper
Assembly:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)

Syntax
C#
Copy
public static GM_Error_t32 GetLocationElevationList(GM_LayerList_t aLayerList, GM_Point_t[] aLocList, out float[] aElevList)
                        GM_LayerList_t aLayerList,
                        GM_Point_t[] aLocList,
                        out float[] aElevList
                )

Parameters

aLayerList
Type: GlobalMapper.Types.GM_LayerList_t
IN: List of layers to search for points or NULL for all terrain layers
aLocList
Type: GM_Point_t[]
IN: List of 2 locations (can be GM_Point_t or any type that is 16 bytes with X and Y as doubles)
aElevList
Type: out float[]
OUT: array to hold elevation in meters for each location provided (GM_INVALID_ELEV_VALUE if none found)

Return Value

type:  GM_Error_t32
A GM Error Code
See Also