The arcpy.ListFeatureClasses and arcpy.da.Walk functions return non-registered spatial tables within a Relational Database Management System (RDBMS).
上次发布: January 14, 2016ArcSDE/Enterprise Geodatabase
漏洞 ID 编号
BUG-000093302
已提交
January 5, 2016
上次修改时间
April 28, 2025
适用范围
ArcSDE/Enterprise Geodatabase
找到的版本
10.2.1
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
This is as designed. These functions will list objects that contain a spatial column, both registered and non-registered.
解决办法
Use the arcpy.Describe function to find the dataset ID (DSID). Registered objects will have a value greater than 0.
gdb = r'Database Connections\Connection to sde.sde'
arcpy.env.workspace = gdb
for fc in arcpy.ListFeatureClasses():
desc = arcpy.Describe(fc)
if desc.DSID > 0:
print '{} is registered'.format(fc)
if desc.DSID < 0:
print '{} is not registered'.format(fc)