LoadLayerList

globalmapper.LoadLayerList(str aFilename, GM_LoadFlags_t32 aLoadFlags) GM_Error_t32, GM_LayerHandle_t32, unint32[source]

Loads the given file and returns a pointer to an array containing handles for the opened layers. The number of layers in the array is returned as a uint32. Even when only one layer is opened, the handle will still be returned in an array. Refer to the tutorial page on working with layer handles for more information on how to turn this array pointer into a usable object in Python.

The layer handles can be used in other calls into the library. Each layer handle must be closed by calling CloseLayer when the caller is done using it.

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

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

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

An array of handles for the loaded layers

Return type:

GM_LayerHandle_t32

Returns:

The number of layers that were loaded

Return type:

uint32