When the regional settings of the PC are set to decimal symbol ',' and digit grouping symbol '.' the Find Local Peaks Or Valleys tool returns the following error message, "could not convert string to float".
上次发布: December 14, 2021ArcGIS Pro
漏洞 ID 编号
BUG-000144269
已提交
November 4, 2021
上次修改时间
June 24, 2025
适用范围
ArcGIS Pro
找到的版本
N/A
操作系统
Windows OS
操作系统版本
10.0 64 Bit
修正版本
3.0
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Change the computer regional settings to set the decimal symbol to '.' and the digit grouping symbol to ','.
Alter the code inside the Python script located in: C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Scripts) and include a local module. For example: locale.setlocale(locale.LC_ALL, ' ').