Global Mapper SDK
GM_GetPathProfileLOS
Retrieves a list of elevations along a path in the provided layer or from the list of currently loaded elevation layers (topmost elevation layer first). Can also perform a line-of-sight calculation and return additional information about a 3D path.
NOTE: Use GM_GetPathProfileLOSEx if you need to pass in a list of layers to consider for the path profile.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GetPathProfileLOS
(
GM_LayerHandle_t32 aLayer, // IN: Layer to get elevation from or NULL for topmost
GM_PathProfileLOSParams_t* aParams // IN/OUT: Calculation parameters
);