Numéro d’ID de bogue |
BUG-000093302 |
Envoi | January 5, 2016 |
Dernière modification | April 28, 2025 |
S’applique à | ArcSDE/Enterprise Geodatabase |
Version trouvée | 10.2.1 |
Statut | Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
This is as designed. These functions will list objects that contain a spatial column, both registered and non-registered.
Solution de contournement
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)
Étapes pour reproduire
ID de bogue: BUG-000093302
Logiciel:
- ArcSDE/Enterprise Geodatabase