Table of Contents

map_SetFormat

Description

Change the file format used to save a map to disk. This function will re-save the map in the new format, and change the file extension if necessary.

Function prototype

bool CExtAPI::map_SetFormat(ZMAP hMap, ZFORMAT hFormat);

Arguments

Name Type Comment
hMap ZMAP A handle to a map variable, the saved file format of which is to be changed.
hFormat ZFORMAT A handle to the file format variable that shall be used to save the map.

Return value

False if an error occurred, and true otherwise.

Comments

This function will fail if the map has not yet been saved (use map_SaveFile in this case). This does not apply to mosaic maps, which are always saved to disk.