MapCatalogSave

globalmapper.MapCatalogSave(GM_LayerHandle_t32 aCatalogLayer, str aFilename) GM_Error_t32[source]

Saves the given map catalog to the given file on disk.

Parameters:
  • aCatalogLayer (GM_LayerHandle_t32) – Handle to map catalog layer (either from loading or CreateMapCatalog)

  • aFilename (str) – Filename to save map catalog to

Returns:

Error Code

Return type:

GM_Error_t32

Example

The following is an example of MapCatalogSave.:

gm.MapCatalogSave(layers_list[0], save_dir + "MapCatalogRemoveMap.gmc")

For more context refer to the map catalog sample scripts.