Update Attributes
Feature Description
Updates target dataset object attributes based on spatial relationships. The Update Attributes function provides two operation modes: updating the entire dataset, or updating through filter expressions.
Feature Entry
- Data Tab->Data Processing->Vector->Update Attributes, opens the Update Attributes dialog.
- Toolbox->Data Processing->Vector->Update Attributes, opens the Update Attributes dialog.
Parameter Description
- Source Dataset: Select the source dataset providing attributes. If a dataset is selected in Workspace Manager, it will be set as the source dataset by default.
- Target Dataset: Set the target dataset and its datasource for attribute updating.
- Statistic Field: Select a field to store the count of updated sub-objects. Unupdated sub-objects are assigned 0, while updated ones are numbered sequentially as 1,2,3...
- Filter Expression: Click the right-side button to open the SQL Expression dialog for setting field filters. Objects meeting the expression criteria in the target dataset will be excluded from attribute updates.
- Spatial Relationship: Defines the spatial relationship between source geometries and target geometries, including Contain, Within, and Intersect:
In the following diagrams, green indicates source objects, red indicates targets meeting spatial relationships, and black indicates non-qualifying targets.
- Contain: Source geometry contains target geometry.
Object Target Point Target Line Target Region Source Point Source Line Source Region - Within: Source geometry is contained by target geometry.
Object Target Point Target Line Target Region Source Point Source Line Source Region - Intersect: Source geometry intersects with target geometry.
Object Target Point Target Line Target Region Source Point Source Line Source Region
- Contain: Source geometry contains target geometry.
- Boundary Handling: Determines whether region boundaries are considered internal. Options: Not Contain Border or Contain Border. This setting activates only when judging point-in-polygon containment or line-polygon intersection.
- Contain Border: Points on region boundaries are considered contained; lines intersecting boundary points are considered intersecting.
- Not Contain Border: Boundary points are excluded from containment; lines only intersecting boundaries without interior points are not considered intersecting.
- Value Assignment Method: Defines how to handle multiple qualifying source objects:
- Assign Value: Randomly selects one attribute value. Suitable for one-to-one assignment.
- Average: Updates with average value (numeric fields only).
- Sum: Updates with sum of values (numeric fields only).
- Maximum: Updates with maximum value (numeric fields only).
- Minimum: Updates with minimum value (numeric fields only).
- Max SMID: Uses attribute value from object with maximum SmID.
- Min SMID: Uses attribute value from object with minimum SmID.
- Concatenate: Merges multiple values with a separator into target field (supports text/character types only).
- Maximum Intersection Area: Uses attribute value from object with largest overlapping area.
- Separator: Required when using Concatenate method. Default: comma.
- Field Settings: Check Source Fields to update, then select corresponding Target Fields through double-click.
Notes:
Supports cross-type field updates and creating new target fields for attribute updates.
- After update, selected fields (existing or newly created) in target dataset will reflect source dataset values.

- Source and target datasets must share coordinate system.
- Character-type fields default to length=1. Adjust field length appropriately before update.
- Source and target fields must have 1:1 correspondence. Type mismatches may cause update failures.
- Different statistic methods require specific field types: Average/Sum/Max/Min require numeric source fields.
Related Topics