The BasicEdit group under the Edit Data tab, as well as the context menu after selecting objects in the map, provides various editing functions for the map. Please note that these functions are only available when the current vector layer is in an editable state.
- Paste: Used to copy the contents of the clipboard to an editable vector layer.
- Execution Method: When the current layer is editable, click the paste button (or use the shortcut Ctrl+V) to save the geometry currently stored in the clipboard to the current layer. At the same time, the attribute records of the pasted object will be appended to the end of the attribute table of the dataset to which it is pasted.
- Paste Rules: The copied object can only be pasted into a dataset that supports it. Point, line, region, and text objects support the following dataset types for pasting:
Copied ObjectDataset Type to Paste IntoPoint DatasetLine DatasetRegion DatasetText DatasetCAD DatasetLayoutPoint ObjectSupportedNot SupportedNot SupportedNot SupportedSupportedSupportedLine ObjectSupportedSupportedSupportedNot SupportedSupportedSupportedRegion ObjectNot SupportedSupportedSupportedNot SupportedSupportedSupportedTextNot SupportedNot SupportedNot SupportedSupportedSupportedSupported
- Point objects support pasting into point and CAD datasets, or into a layout.
- Line objects support pasting into point, line, region, CAD datasets, or into a layout. When a line object is pasted into a point dataset, the line object is automatically converted to a point object, i.e., the nodes of the line object are directly converted to points. When a line object is pasted into a region dataset, a non-straight line object is automatically converted to a region object. If the line object is closed, the line serves as the boundary of the region; if the line object is not closed, the line object is connected end-to-end and then converted to a region object.
- Region objects support pasting into line, region, CAD datasets, or into a layout. When a region object is pasted into a line dataset, the boundary lines of the region object are automatically converted to line objects.
- Text supports pasting into text, CAD datasets, or a layout.
-
Paste Target Determination Rules: The system automatically determines the paste target according to the following logic:
- When pasting into a map:
- If a layer is selected in the layer manager, the paste is preferentially made to the selected layer (if multiple layers are selected, the paste is made to a layer that meets the rules).
- If no layer is selected, the system first tries to paste to the original layer from which the object was copied. If the original layer has been removed, it pastes to the first editable layer of the same type.
- When using Ctrl+V in the layer manager:
- The system determines the clipboard content: if an object is copied, the object is pasted; if a layer is copied, the layer is pasted.
- When pasting into a map:
- Paste Special: Used to precisely paste the copied object to a target layer specified by the user. This function provides finer layer control than standard paste. For detailed operations, please refer to Paste Special.
- Cut: Used to cut the selected geometry and save it to the clipboard.
When the current layer is editable, select one or more geometries (hold the Shift key), click the Cut button (or use the shortcut Ctrl+X). The selected geometry will be cut from the original dataset and saved to the clipboard.
- Copy: Used to copy the selected geometry and save it to the clipboard.
When the current layer is editable, select one or more geometries (hold the Shift key), click the Copy button (or use the shortcut Ctrl+C). The selected geometry will be copied and saved to the clipboard.
- Multi-Layer Editing: Used to control the editable state of multiple layers in the current map. For more information, please refer to Enable Layer Editing.
- Undo: Used to undo the last operation.
When the current layer is editable, click the Undo button (or use the shortcut Ctrl+Z) to undo the last operation.
Undo is only available after an editing operation on the geometry has been performed.
- Redo: Used to redo the previous operation.
When the current layer is editable, click the Redo button (or use the shortcut Ctrl+Y) to return to the status before the last undo operation.
Redo is only available after an undo operation has been performed.
- Delete: Used to delete single or multiple selected objects.
When the current layer is editable, select one or multiple objects and then click the delete button to delete the selected objects.
- Style Brush: Used to assign the style of one object to other objects. For more information about the Style Brush, please refer to Style Brush.
- Attribute Brush: Used to assign some or all editable fields and their values from one object to other objects. For more information about the Attribute Brush, please refer to Attribute Brush.
Notes:When performing editing operations involving the addition, deletion, or merging of geometry (including undo/redo), the database mechanism automatically assigns a new SmID to the newly generated or restored object and appends it to the end of the attribute table. The original SmID before the object editing is not retained. For example, an object restored after deletion, or the original object after intersection and then undo and restoration, will have a new SmID.
If your map display logic is directly related to SmID (for example, object order control based on SmID, thematic maps based on SmID fields, etc.), editing operations may cause SmID changes, thereby affecting the display order or thematic map effect. It is recommended to avoid relying on the sequential property of SmID when designing related display schemes.