Field mapping is the process of matching attribute fields on a source feature layer to attribute fields on a target feature layer for the purpose of transferring attribute data between features. Field mapping is available on the Editor Settings dialog box on the Field Mapping side tab.
Specific editing tools use field mapping settings to transfer attribute values. These tools include Transfer Attributes , Copy Parallel
, and Mirror
, and the Copy
, Cut
, and Paste Special
commands in the Clipboard group.
These tools are also noted in the Modify Features tool reference topic, which specifies which tools reference these settings.
To configure field mapping, complete the following steps:
- On the ribbon Edit tab, click Editor Settings
in the Manage Edits group.
Alternatively, if the active editing tool references field mapping, click the Editing Options button
and click Field Mapping
.
The Editor Settings dialog box appears.
- Click the Field Mapping side tab.
- Click the Target drop-down arrow and choose the feature layer for the features to which attribute values are to be transferred.
Attribute fields defined for the layer appear in the Target column.
- Click the Source drop-down arrow and choose the feature layer for the features from which attribute values are to be copied.
The default field mapping settings automatically match field names and data types between the Target and Source layer.
To change or add a field, for example, to add a field with a different name or data type, click the field and click the drop-down arrow. Allowable fields appear in the drop-down selector.
- On the toolbar, click the following commands to reset, clear, or map matching fields.
Reset
Restore field settings to the last saved configuration.
Auto Match
Map all fields with matching field names and data types. This is the default setting.
Clear
Remove all field settings.
- Click the Expression tab to view or customize the ArcGIS Arcade expression created by the field settings.
If fields on the Fields tab change, the current expression is overwritten.
Note:
Multiple lines separated by a comma are allowed in the same window. The following example returns field values in the source feature fields Elevation and Rotation to the target fields with the same name.
return { "Elevation" : $sourceFeature['Elevation'], "Rotation" : $sourceFeature['Rotation'] }
To learn more, see ArcGIS Arcade.
- On the toolbar below the expression window, click the following commands to reset, verify, or import and export label expression (LXP) files.
Reset
Restore the expression to the last saved settings.
Verify
Validate the expression. Line numbers and reasons for syntax errors are shown in the error message.
Import
Import a label expression (LXP) file.
Export
Export the expression to a label expression (LXP) file.
- Click OK.
The dialog box closes.