A Python Labeling Expression that uses numeric values in an IF statement fails to return the correct values.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM081975
已提交
June 21, 2012
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.1
操作系统
Windows OS
操作系统版本
7
修正版本
N/A
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
附加信息
The Building label expressions help topic has been updated.
解决办法
The numeric fields are automatically cast to text strings. Therefore if you wish to use a numeric value in an arithmetic operation, or a comparison, you will need to cast it back to a numeric data type.example:int([FIELDNAME])