ArcGIS Desktop – How to Find Out If a File Geodatabase Was Compressed

arcgis-10.2arcgis-desktopfile-geodatabase

I work with a bunch of file geodatabases and some of them are compressed. I want to find out quickly which ones are and which aren't. The Compress File Geodatabase Data GP tool doesn't seem to have any check before running. I don't want to run File Geodatabase Data GP tool on uncompressed geodatabases though; I just to know whether they are compressed/uncompressed.

I could grab some random feature class / table and try starting editing session to see if it will let me do that (because you can't edit data that is compressed), but am looking for a more elegant solution. Ideally this would be an ArcPy/Python solution which I could use for going over multiple geodatabases.

Best Answer

From what I know, there is no property to automatically identify compressed file geodatabase with arcgis. But you can see this information in ArcCatalog : A compressed feature class or table has "(compressed)" in the Type column.

For routine check, you can also look for the .cdf files inside your .gdb folder using file searching methods (e.g. os.walk() or glob.glob() in Python).