The Clip (management) tool fails to execute in German OS because the tool does not honor ',' as the defined decimal character for extent values.
上次发布: January 3, 2019ArcGIS for Desktop
漏洞 ID 编号
BUG-000115365
已提交
July 16, 2018
上次修改时间
April 28, 2025
适用范围
ArcGIS for Desktop
找到的版本
10.6
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Use arcpy.Clip_management(NDOM_Layer, str(desc.extent), export_tif).
arcpy.Clip_management(NDOM_Layer, desc.extent, export_tif) is a incorrect syntax for the extent.
解决办法
Replace ',' with '.' in the extent values to provide Clip_management with the number formatting expected.For example, if the name of the shapefile used for clipping is named Clip_shp and the extent is obtained with: desc=arcpy.Describe(Clip_shp) and desc.extent, use str(desc.extent).replace(',','.') instead.