Instructions for use
Truncate Table is used to clear all objects in the specified dataset, retaining only its attribute structure. This operation is irreversible, so use it with caution. Specifically, if the cleared objects are involved in other functions (such as map display, spatial query, relation dataset association, etc.), these functions will not be able to normally use the cleared objects. Therefore, it is recommended to ensure that the relevant data is not used by other functions or necessary backups have been completed before performing this operation, to avoid business interruption or data reference anomalies.
This function is suitable for scenarios that require regular, full-volume data updates. For example, a city's land inspection department needs to quarterly update the data for "violation plots in this quarter." Using the Truncate Table function, you can clear the data from the previous quarter with one click, while completely retaining the dataset's attribute structure, providing great convenience for entering new quarter information and avoiding the hassle of manually deleting or recreating the dataset.
The functional usage restrictions are as follows:
- Supported data sources: UDB/UDBX file database, database datasource, folder-type data sources (currently only supporting FileGDB format).
- Supported datasets: 2D point/line/region, 3D point/line/region, pure attribute tables, text datasets.
- Unsupported operation: Cannot clear datasets that have registered versions. Please unregister the version before execution.
SuperMap iDesktopX Starting from version 2026.
Function Entry
- Data tab -> Data Processing group -> Gallery control drop-down menu -> Truncation Table.
- Toolbox -> Data Processing -> Vector -> Truncation Table.
Parameter description
| Parameter Name | parameter interpretation | parameter type |
|---|---|---|
| Data Source | Specifies the data source where the dataset to be cleared of all objects is located. | Datasource |
| Dataset | Specifies the dataset to be cleared of all objects. | DatasetVector |
Output Result
After successful execution, the original dataset will become an empty dataset, with all its objects (spatial geometry and attribute records) cleared, retaining only its table structure.
Related Topics
Delete Objects by Filter Criteria