PROBLEM
When attempting to select a field in the 'Vary symbology by attribute tab' in the Symbology pane for ArcGIS Pro, the field is not available in the drop-down menu.
The image below shows the Field parameter drop-down menu without the Direction field selection.
This is expected behavior when the Direction field contains cardinal directions in text data type values, for example, North, North West, and others. The 'Vary symbology by attribute' function requires a numeric data type field to represent the angle used for rotation. Refer to ArcGIS Pro: Numbers for additional information regarding numeric data types.
if ( $feature["<Feature Name>"] == "North") { return 0 } else if ( $feature["<Feature Name>"] == "East") { return 90 } else if ( $feature["<Feature Name>"] == "West") { return 270 } else if ( $feature["<Feature Name>"] == "South") { return 180 } else if ( $feature["<Feature Name>"] == "North East") { return 45 } else if ( $feature["<Feature Name>"] == "South East") { return 135 } else if ( $feature["<Feature Name>"] == "South West") { return 225 }
The image below shows the Field parameter drop-down menu with the Cardinal Directions field selection.
Article ID: 000031551
Get help from ArcGIS experts
Download the Esri Support App