globalmapper.ExportVectorEx =========================== .. currentmodule:: globalmapper .. py:function:: ExportVectorEx (str aFilename, GM_VectorExportFormat_t32 aFormat, GM_LayerHandle_t32 aLayer, GM_Rectangle_t aWorldBounds, GM_VectorExportFlags_t32 aFlags, int aFormatOptions, str aExtraFlags) -> GM_Error_t32 Exports one or more layers to a new vector file. If 0 is passed for the layer handle list, all vector layers will be saved to the new vector file, otherwise only the specified layer will be exported. If 0 is provided for the world bounds, all available data will be exported, otherwise only data within the specified bounds will be exported. The new vector file create will be in the current view projection as returned by the :doc:`GetProjection function<../measure/globalmapper.GetProjection>`. You can change the view projection, and thus the export projection, by calling the :doc:`SetProjection function<../measure/globalmapper.SetProjection>`. :param str aFilename: Name of new file to create :param GM_VectorExportFormat_t32 aFormat: Format to export :param GM_LayerHandle_t32 aLayer: Layer to export or gm.NULL for all :param GM_Rectangle_t aWorldBounds: World bounds to export or None for all :param GM_VectorExportFlags_t32 aFlags: Export flags :param int aFormatOptions: Format-specific options (gm.NULL or 0 for defaults) :param str aExtraFlags: Additional text-based flags for some formats (use None for defaults) :returns: Error Code :rtype: GM_Error_t32