Manage Datasource

supports managing datasources, including the following operations:

    1. Copy Datasource

    2. Reassign Datasource

    3. Close Datasource

    4. Compress Datasource

    5. Reopen Datasource as Read-Only/Exclusive

    6. Sort Datasources

    7. Refresh 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 copying. Unchecking this option will change the target datasource's projection to match the source datasource's projection.
  • Copy Structure Only:Unchecked by default, meaning copying the datasource will copy all data from the source dataset, including geometry graphics and attribute data, to the corresponding dataset in the target datasource. Checking this option will copy only the structure.
  • Advanced Settings:You can select the source datasets to be copied or rename the target datasets by checking the Source Dataset options.

Reassign Datasource

Generally, a datasource is stored in the same directory folder as the workspace, and operations within the workspace depend on the data in the datasource. Therefore, copying a workspace usually requires copying the datasource along with it. However, when the storage location of a datasource changes or the workspace cannot automatically link to the datasource, you can select the datasource that needs its connection reassigned in the Workspace Manager and choose Reassign... from the context menu.

Note:
  • Reassign Datasource is only available when the storage location of the datasource relative to the workspace has changed.
  • When using Reassign Datasource, the connection status of other datasources will be automatically checked. If all are disconnected and the datasources are stored in the same folder, the application will automatically link other disconnected datasources, completing the reassignment of datasources in batch.
  • After reassigning a datasource, if there are saved maps, scenes, etc., in the workspace, you need to change the dataset to fully restore operations to the state before the datasource location changed. Please refer to Change Dataset.

Close Datasource

Closing datasources that are temporarily not needed in the workspace can help quickly locate the datasources you need to operate on. In the Workspace Manager, select the datasource to be closed and choose Close from the context menu.

Warning:

  • If the datasource to be closed contains data that is already open in a map, the system will pop up a warning dialog: "Closing datasource xxx will remove its associated layers from the current map. Do you want to continue?"

  • Select "Yes" to close the datasource and remove its associated layers from the map; select "No" to cancel the close operation.

Compress Datasource

For UDB/UDBX file databases, you can perform batch compression on a single datasource or multiple datasources to reduce data volume and occupy less disk space. In the Workspace Manager, select the datasource(s) to be compressed and choose Compress Datasource... from the context menu. Alternatively, use the Toolbox panel -> Data Management -> Data Maintenance -> Compress Datasource.

Tip:

During the execution of Compress Datasource, a Compress Datasource dialog will pop up showing the compression progress. Upon completion, the operation result (success or failure) will be displayed in the output window.

Reopen Datasource as Read-Only/Exclusive

When using certain features in , such as generating tiles using multiple processes, each process will simultaneously access the datasources containing all layers in the map, potentially causing the datasource to be occupied. Therefore, before performing such functions, it is necessary to set the datasource to read-only. Additionally, when editing multiple datasets across multiple datasources, you can also set some datasources to be opened as read-only to avoid accidental operations. To do this, select the datasource you want to reopen as read-only in the Workspace Manager and choose Reopen as Read-only. from the context menu.

If you want to cancel the read-only setting for a datasource to edit the datasets within it, select the datasource you want to reopen exclusively in the Workspace Manager and choose Reopen Exclusively from the context menu.

Sort Datasources

Sorting multiple datasources contained in a workspace collectively can improve the convenience of datasource management and usage. In the Workspace Manager, select the Datasources node, choose Sort Datasources from the context menu, and select the sorting method: by Name, Type, or Open Order.

Refresh Datasource

If datasets added or deleted are not correctly displayed under the datasource node, select the datasource that needs refreshing in the Workspace Manager and choose Refresh from the context menu. The refreshed datasource will be placed at the bottom of all datasources.

Related Topics

New Datasource

Open Datasource

View Datasource Properties

Datasource Conversion