GM_ExportElevationEx |
Exports one or more layers to a new gridded elevation file. If NULL is passed for the layer list, all elevation layers will be saved to the new elevation file, otherwise only the specified layer will be exported. If NULL 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 GM_GetProjection function. You can change the view projection, and thus the export projection, by calling the GM_SetProjection function.
The aExtraFlags parameter allows the specification of any extra options not supports in the aFlags parameter. The options should be specified with the option name, followed by an equal sign, followed by the option value. Most users will pass NULL for this value unless they need a non-default value for an extra option. Currently the following extra options are supported:
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_ExportElevationEx ( const char* aFilename, // Name of new file to create GM_ElevationExportFormat_t32 aFormat, // Format to export GM_LayerHandle_t32* aLayerList, // List of layers to export or NULL for all uint32 aLayerCount, // Number of layers in list (0 for all) const GM_Rectangle_t* aWorldBounds, // World bounds to export or NULL for all sint32 aPixelWidth, // Width in samples of new image sint32 aPixelHeight, // Height in samples of new image GM_RasterExportFlags_t32 aFlags, // Export flags GM_ElevUnits_t8 aElevUnits, // Elevation units for export, if applicable const char* aExtraFlags // Additional text-based flags for some formats (use NULL for defaults) )