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
最終更新日
June 5, 2024
適用対象
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)