The Euclidean tools in the Spatial Analyst Distance toolbox do not set the environment workspace to the current working directory as other tools do.
上次发布: May 22, 2020ArcGIS Pro
漏洞 ID 编号
BUG-000131030
已提交
May 21, 2020
上次修改时间
June 25, 2025
适用范围
ArcGIS Pro
找到的版本
2.5
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
解决办法
Here is a robust line of Python code to use instead. This code will work today:
ws = os.path.join(os.path.dirname(os.path.abspath(__file__)), "Data.gdb")
arcpy.env.workspace = ws