LoadPackage

globalmapper.LoadPackage(str aFilename, GM_LoadFlags_t32 aLoadFlags) GM_Error_t32, GM_PackageHandle_t32[source]

Loads a new Global Mapper package (.gmp) file. You can also load package files with the LoadLayerList command if you don’t need to operate on the package as a whole.

A handle to the package is returned as a GM_PackageHandle_t32, which will appear as a pointer. This package handle can be used in package-specific functions like DrawPackageList. Each package handle must be closed by calling ClosePackage when the caller is done using it.

Parameters:
  • aFilename (str) – the package to load

  • aLoadFlags (GM_LoadFlags_t32) – control flags for loading the package

Returns:

Error Code

Return type:

GM_Error_t32

Retuns:

The package that was loaded

Return type:

GM_PackageHandle_t32