GM_UtilityGetPathProfile 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)

Syntax
C#
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: GlobalMapperGM_Layer_t
IN: Layer to get elevation from or NULL for topmost
aStartX
Type: SystemDouble
IN: Start X coord in current projection
aStartY
Type: SystemDouble
IN: Start Y coord in current projection
aEndX
Type: SystemDouble
IN: End X coord in current projection
aEndY
Type: SystemDouble
IN: End Y coord in current projection
aElevList
Type: SystemSingle
OUT: (float*) Buffer to hold list of elevations
aListSize
Type: SystemUInt32
IN: Number of elevations to retrieve
aDfltElev
Type: SystemSingle
IN: Elev to use when none could be found

Return Value

Type: GM_Error_t32
A GM Error Code
See Also