hi arcgis community,I have a file geodatabase that has different feature datasets and each feature dataset contains different feature classes. I would like to have a certain process automatically run on each feature class. i don't know how to access each feature class. because with a for loop I can only read my feature dataset.
In Model Builder, use Iterate Feature Classes (ModelBuilder)—ArcGIS Pro | Documentation
Check Recursive option as well.
try this:
for dataset in arcpy.ListDatasets("", "Feature"): print (dataset) for fc in arcpy.ListFeatureClasses(feature_dataset=dataset): print(" " +fc)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.