The label expressions with a numeric field in Python work as a string field in ArcGIS Pro.
ArcGIS Pro
漏洞 ID 编号
BUG-000168555
已提交
June 24, 2024
上次修改时间
July 5, 2024
适用范围
ArcGIS Pro
找到的版本
2.9
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
附加信息
See the documentation: https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/specify-text-for-labels.htm
Field values are automatically converted to text strings. Therefore, to use a numeric value in an arithmetic operation or when making a comparison, cast it back to a numeric data type. When using Arcade, the field values maintain their data types.
Python example:
int([FIELD1]) + int([FIELD2])