GetPixelElevation

globalmapper.GetPixelElevation(GM_LayerHandle_t32 aLayer, sint32 aRow, sint32 aCol) GM_Error_t32, float[source]

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.

Parameters:
  • aLayer (GM_LayerHandle_t32) – Layer to get elevation from

  • aRow (sint32) – Y coord of pixel (0 is topmost)

  • aCol (sint32) – X coord of pixel (0 is leftmost)

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Elevation at location in meters

Return type:

float