Supports managing datasources, including the following operations:
5. Reopen as Read-only/Exclusive Open Datasource
copy datasource
Copy Datasource copies all datasets from the Source Datasource to the Target Datasource. In the Workspace Manager, select the datasource to be copied, choose Copy Datasource... from the context menu, and set the Source Datasource, Target Datasource, and the following options in the pop-up dialog:
- keep projection:Selected by default, meaning the projection of the target datasource remains unchanged during the copy. If deselected, the target datasource's projection changes to match the source datasource's projection.
- copy structure only:Not selected by default, meaning all data from the source dataset, including geometry graphics and attribute data, are copied to the corresponding datasets in the target datasource. If selected, only the structure is copied.
- advanced settings:Select specific Source Dataset to copy or rename the target dataset by checking the options.
reassign datasource
Typically, datasources are stored in the same directory folder as the workspace, and operations in the workspace depend on the data in the datasources. Therefore, when copying a workspace, datasources should be copied together. However, if the storage location of a datasource changes or the workspace cannot automatically link to the datasource, select the datasource that needs reconnection in the Workspace Manager and choose Reassign... from the context menu.

- Reassign Datasource is only available when the storage location of the datasource relative to the workspace changes.
- When using Reassign Datasource, the connection status of other datasources is automatically checked. If all are disconnected and stored in the same folder, the program will automatically reassign other disconnected datasources in bulk.
- After reassigning the datasource, if the workspace contains saved maps or scenes, the dataset must be changed to restore operations to the state before the datasource location changed. Refer to Change Dataset.
close datasource
Closing datasources not currently needed in the workspace facilitates quick location of datasources for operations. In the Workspace Manager, select the datasource to close and choose Close from the context menu.

When closing a datasource, all datasets within it are also closed. Ensure these datasets are no longer in use in the workspace before closing the datasource.
compress datasource
For UDB/UDBX file databases, you can batch-compress one or multiple datasources to reduce data volume and save disk space. In the Workspace Manager, select the datasource to compress and choose Compress Datasource... from the context menu, or use the Toolbox panel -> Data Management -> Data Maintenance -> Compress Datasource.

During compression, the Compress Datasource dialog displays progress. Upon completion, the operation result (success or failure) is shown in the output window.
Reopen as Read-only/Exclusive Open Datasource
When using certain features in , such as generating tiles by multi-process, multiple processes simultaneously access datasources containing all layers in the map, causing the datasources to be occupied. Before executing such functions, set the datasource to read-only. Additionally, when editing multiple datasets across datasources, setting some datasources to open as read-only prevents accidental operations. To do this, select the datasource to reopen as read-only in the Workspace Manager and choose Reopen as Read-only. from the context menu.
To cancel the read-only setting and enable editing of datasets under the datasource, select the datasource to reopen exclusively in the Workspace Manager and choose Reopen exclusively. from the context menu.
sort datasources
Sorting multiple datasources in the workspace enhances management and usability. In the Workspace Manager, select the Datasources Node and choose Sort Datasources from the context menu, then select sorting by Name, Type, or Open Order.
refresh datasource
If added or deleted datasets are not displayed correctly under the datasource node, select the datasource to refresh in the Workspace Manager and choose Refresh from the context menu. After refreshing, the datasource moves to the bottom of all datasources.
Related Topics