globalmapper.ExportElevation(str aFilename, GM_ElevationExportFormat_t32 aFormat, GM_LayerHandle_t32 aLayer, GM_Rectangle_t aWorldBounds, sint32 aPixelWidth, sint32 aPixelHeight, GM_RasterExportFlags_t32 aFlags, GM_ElevUnits_t8 aElevUnits) GM_Error_t32[source]

Exports one or more layers to a new gridded elevation file. If gm.NULL is passed for the layer handle, all elevation layers will be saved to the new elevation file, otherwise only the specified layer will be exported. If None is provided for the world bounds, all available data will be exported, otherwise only data within the specified bounds will be exported.

The new elevation file create will be in the current view projection as returned by the GetProjection function. You can change the view projection, and thus the export projection, by calling the SetProjection function.

  • aFilename (str) – Name of new file to create

  • aFormat (GM_ElevationExportFormat_t32) – Format to export

  • aLayer (GM_LayerHandle_t32) – Layer to export or gm.NULL for all

  • aWorldBounds (GM_Rectangle_t) – World bounds to export or None for all

  • aPixelWidth (sint32) – Width in samples of new image

  • aPixelHeight (sint32) – Height in samples of new image

  • aFlags (GM_RasterExportFlags_t32) – Export flags

  • aElevUnits (GM_ElevUnits_t8) – Elevation units for export, if applicable


Error Code

Return type