laptop and a wrench

Bogue

ListFeatureClasses(), ListTables() and ListDatasets() methods will not work in ArcToolbox as a script tool, but work fine in PythonWin.These methods were defected with shapefiles but not with personal geodatabse and file geodatabase.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM011091
EnvoiAugust 20, 2007
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Version de correction9.3
StatutFixed

Solution de contournement

1) Convert all shapefiles from a folder to one personal geodatabase or file geodatabase.OR2) Use native a py module method to list shapefiles from a directory. The following is an example of how you could use the glob module to build a list of all shapefiles in a given directory. #############################import sys, string, os, glob, timegp = arcgisscripting.create()root = r"C:\Incidents\Active" # one specific folderfile_list = []for folder in glob.glob(root): for file in glob.glob(folder + '/*.shp'): file_list.append(file)x = 0while x < len(file_list): print file_list[x] x+=1############################

Étapes pour reproduire

ID de bogue: NIM011091

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement