Hi, how do I read geodatabase content using python? Creating a file geodatabase is not a problem but after that, how can I acces the file GDB using python and -for example- lists its content
tia, Bert
Do you mean like ListFeatureClasses ? There are many more here if this is what you mean
That's exactly what I mean, thanks Dan, and thank you Matthew for your code example.
just adding to the first reply
import arcpy from arcpy import env env.workspace = "C:/mygdb.gdb" fclist = arcpy.ListFeatureClasses() for fc in fclist: ## Add Code here print fc
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.