Click or drag to resize

GM_GetPixelElevation

Retrieves the elevation at a given pixel location from a provided elevation layer. If the layer does not contain a valid elevation sample at the provided pixel location (i.e. it is a "no data" value), GM_Error_NoDataAtLocation will be returned.

Syntax
GM_DLL_EXPORTED GM_Error_t32 GM_GetPixelElevation
(
GM_LayerHandle_t32      aLayer,     // IN: Layer to get elevation from or NULL for topmost
sint32                  aRow,       // IN: Y coord of pixel (0 is topmost)
sint32                  aCol,       // IN: X coord of pixel (0 is leftmost)
float*                  aElev       // OUT: Elevation at location in meters
);