globalmapper.ExportPackage ========================== .. currentmodule:: globalmapper .. py:function:: ExportPackage (str aFilename, [GM_LayerHandle_t32] aLayerList, GM_Rectangle_t aWorldBounds, float aSimpThreshold, GM_PackageExportFlags_t32 aFlags) -> GM_Error_t32 Exports one or more layers to a new Global Mapper package file. If None is passed for the layer list handle, all loaded layers will be saved to the new package file, otherwise only the specified layer(s) will be exported. If None is provided for the world bounds, the entirety of each layer will be exported, otherwise only data within the specified bounds will be exported. :param str aFilename: Name of new file to create :param [GM_LayerHandle_t32] aLayerList: List of layers to export or None for all :param GM_Rectangle_t aWorldBounds: World bounds to export or None for all :param float aSimpThreshold: Simplification threshold, use 0.0 for no simplification :param GM_PackageExportFlags_t32 aFlags: Export flags :returns: Error Code :rtype: GM_Error_t32