Since version: 1.7
With the field mapping profile, expressions can be written to define a field map between source and target layers. The field map is used by the transfer attribute tool, copy/paste attributes and other editing tools where a field map can be specified.
Context
The following products implement this profile:
- ArcGIS Pro
- ArcGIS Enterprise
Spatial reference
The spatial reference of the map in which the expression executes determines the execution context's spatial reference.
Time zone
The time zone of the map in which the expression executes determines the execution context's default time zone.
Profile variables
Variable Name | Type | Description |
---|---|---|
$sourcefeature | Feature | The source feature for the field map. |
$targetfeature | Feature | The target feature for the field map. |
$sourcelayer | FeatureSet | A collection of features in the same layer as $sourcefeature. |
$targetlayer | FeatureSet | A collection of features in the same layer as $targetfeature. |
$map | FeatureSetCollection | A collection of layers in the map of the executing arcade expression. |
$sourcedatastore | FeatureSetCollection | A collection of layers in the same datastore as the $sourcelayer. |
$targetdatastore | FeatureSetCollection | A collection of layers in the same datastore as the $targetlayer. |
Function bundles
Core | Geometry | Data Access | Portal Access
Return types
Example
The following example copies the values in the source feature fields Elevation
and Rotation
to the target fields with the same name.
return {
"Elevation" : $sourceFeature['Elevation'],
"Rotation" : $sourceFeature['Rotation']
}