HOW TO
In ArcGIS Pro, it is possible to copy field values from one feature to another. When working on a project involving continuous data collection, feature classes may intersect and share the same field values, and attribute rules allow users to auto-populate the attribute fields of newly created features with the values of the intersecting feature classes. This method is useful in data management and spatial analysis.
In this article, an attribute rule is applied to auto-populate the Location field (from the Lot point feature class) with the values of the Name field (from the Zone polygon feature class) when both the feature classes intersect. The attribute table for the Zone polygon feature is shown below.
Note: The dataset requires Global IDs to add an attribute rule.
var <variable_name> = FeatureSetByName($datastore, "<feature_layer>") for( var f in <variable_name>){ if(Intersects($feature, f)){ return f.Name} }
The map below displays the Location field of the Lot point feature layer populated with values from the Name field of the Zone polygon feature layer when both the feature layers intersect.
Get help from ArcGIS experts
Download the Esri Support App