I need to list a server's geodatabases, to analyze and process them. My users are however creating both personal geodatabases and MS Access geodatabases.
Listing mdb
files reports both types of databases, I woudl like to narrow the list down to geodatabases only.
The boolean workspace property is_geodatabase
would be exactly what I need to use, as it indicates whether a database is spatially enabled or not. Unfortunately, this property is only available for SDE databases.
I am using ArcGIS 10.0. and the script below. The choice was made to list mdb
files by extension using os.walk()
rather than arcpy.ListWorkspaces()
for speed of process, and because ListWorkspaces
retrieves MS Access databases anyway.
How can I amend my script to report only personal geodatabases, and not flat MS acess databases?
for path, subdirs, files in os.walk(analyzed_root_folder):
for x in files:
if x.lower().endswith(".mdb") == True:
ext_mdb.append( os.path.join(path, x))
workspaceFactoryProgID
property of the Describe object (when describing non-geodatabase .mdb file) and it returnedesriDataSourcesGDB.AccessWorkspaceFactory.1
even though there is no geo repository inside. help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/… – Alex Tereshenkov Dec 4 '15 at 7:00