操作方法
在 ArcGIS Pro 中,可以将字段值从一个要素复制到另一个要素。 在处理涉及连续数据采集的工程时,要素类可能会相交并共享相同的字段值,并且属性规则允许用户使用相交要素类的值自动填充新创建要素的属性字段。 此方法在数据管理和空间分析中非常有用。
在本文中,应用了一个属性规则,当 Lot 点要素类与 Zone 面要素类相交时,自动使用 Zone 的 Name 字段值填充 Lot 的 Location 字段。 Zone 面要素的属性表如下所示。
Note: Both intersecting features must have the same coordinate system to populate the attribute field value.
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} }
下图展示了当两个要素图层相交时,Lot 点要素图层的 Location 字段被 Zone 面图层的 Name 字段值填充的情况。
文章 ID: 000031093
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序