arcpy.Describe with data path as a parameter doesn't return the default aliasName for a geodatabase feature class or table.
上次发布: January 11, 2018ArcGIS for Desktop
漏洞 ID 编号
BUG-000109412
已提交
November 9, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.5.1
操作系统
Windows OS
操作系统版本
7.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
If the alias has not been set in the table properties dialog, the alias box shows the table name, but the alias has not actually been set.
解决办法
1. Load the data to ArcMap and use the layer/table name as arcpy.Describe() parameter, such as arcpy.Describe("testtable")" instead of the data path.2. Design your script logic to assume a null return of "arcpy.Describe().aliasName" indicates "arcpy.Describe().Name".