globalmapper.GetPixelElevationRow

globalmapper.GetPixelElevationRow(GM_LayerHandle_t32 aLayer, sint32 aRow, float_array aElevRow, float aInvalidVal) GM_Error_t32[source]

Retrieves the elevation values for an entire row of the provided layer. If any elevations don’t have valid values they will be replaced by aInvalidVal. This function is much faster than individually getting the elevation value for individual pixels using the GetPixelElevation function, so use this to access large portions of a loaded layer. The results will be returned through the aElevRow parameter.

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

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

  • aElevRow (float_array) – In/Out: Buffer to hold elevation values for row in meters

  • aInvalidVal (float) – Value to use for invalid samples (i.e. -9999.9)

Returns

Error Code

Return type

GM_Error_t32