Global Mapper SDK
GM_GetFeatureElevation
Retrieves the elevation of this feature in meters. Returns an error code if there is not just a single elevation value that applies to this feature.
Syntax
C++
Copy
GM_Error_t32 __stdcall GM_GetFeatureElevation
(
GM_LayerHandle_t32 aLayer, // IN: Layer the point is in
GM_FeatureClassType_t8 aFeatureClassType, // IN: Type of feature class (area, point, line)
uint32 aFeatureIndex, // IN: Index of feature in layer
float* aElev // OUT: Elevation of feature (in meters)
)