Update Attributes
Feature Description
Updates the attributes of objects in the recordset based on spatial relationships.
The update attributes function provides two operational modes for selecting target datasets: updating the entire dataset or updating through filter expressions.
Notes:
- When setting fields, the data type of the source field must match that of the target field. Assignment is prohibited between different types.
- Different statistical methods require corresponding statistic fields. Assign Value, Maximum SMID, and Minimum SMID support numeric or text types, but not Boolean, memo, or date types. Average, Sum, Maximum, and Minimum values require numeric fields.
Parameter Description
Parameter Name | Default Value | Description | Type |
---|---|---|---|
Source Dataset | Dataset providing attribute data | DatasetVector | |
Target Dataset | Dataset to be updated | DatasetVector | |
Spatial Relation | Contain | Defines spatial relationships between source and target geometries: Contain, Be Contained, or Intersect | SpatialRelationType |
SQL Filter Expression (Optional) |
Filter expression to exclude target objects meeting specified conditions from attribute updates | String | |
Source Field | Field collection from source dataset for attribute updates | String | |
Target Field to Update | Field collection to be updated, corresponding to source fields | String | |
Value Assignment Method | Assign Value | Method for handling multiple qualifying source objects: Assign Value, Average, Sum, Maximum, Minimum, Maximum SMID, or Minimum SMID | AttributeStatisticsType |
Contain Border (Optional) |
False | Determines whether polygon boundaries are considered internal. Affects point-in-polygon and line-polygon intersection judgments | Boolean |
Statistic Field (Optional) |
Field storing count of updated sub-objects (0 for unupdated, sequential numbering for updated) | String |
Note: For more details, please refer to https://help.supermap.com/iDesktopX/1101/zh/tutorial/DataProcessing/Vector/Attributeupdate
Output
Parameter Name | Description | Type |
---|---|---|
Result Vector Dataset | Result vector dataset | DatasetVector |