Click or drag to resize

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:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
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.TypesGM_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