GM_Utility .GetPathProfile Method |
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).
Namespace:GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

C#
Copy
public static GM_Error_t32 GetPathProfile(
GM_Layer_t aLayer,
double aStartX,
double aStartY,
double aEndX,
double aEndY,
out float[] aElevList,
uint aListSize,
float aDfltElev
)
Parameters
- aLayer
-
Type:
GlobalMapper
.
GM_Layer_t
IN: Layer to get elevation from or NULL for topmost - aStartX
-
Type:
System
.
Double
IN: Start X coord in current projection - aStartY
-
Type:
System
.
Double
IN: Start Y coord in current projection - aEndX
-
Type:
System
.
Double
IN: End X coord in current projection - aEndY
-
Type:
System
.
Double
IN: End Y coord in current projection - aElevList
-
Type:
System
.
Single
OUT: (float*) Buffer to hold list of elevations - aListSize
-
Type:
System
.
UInt32
IN: Number of elevations to retrieve - aDfltElev
-
Type:
System
.
Single
IN: Elev to use when none could be found
Return Value
Type: GM_Error_t32A GM Error Code
