Uncompress File Geodatabase Data (Data Management)

Summary

Uncompresses all the contents in a geodatabase, all the contents in a feature dataset, or an individual stand-alone feature class or table.

Usage

Syntax

UncompressFileGeodatabaseData_management (in_data, {config_keyword})
ParameterExplanationData Type
in_data

The geodatabase, feature dataset, feature class, or table to uncompress.

Feature Dataset; Table View or Raster Layer; Workspace
config_keyword
(Optional)

The configuration keyword defining how the data will store once uncompressed

String

Code Sample

UncompressFileGeodatabaseData Example (Python Window)

The following example demonstrates how to use the UncompressFileGeodatabaseData funcion in the python window.

 import arcpy
arcpy.env.workspace = "C:/data/"
arcpy.UncompressFileGeodatabaseData_management("london.gdb")
UncompressFileGeodatabaseData Example (Stand-alone Python script)

The following example demonstrates how to use the UncompressFileGeodatabaseData funcion in a standalone python script.

# Name: UncompressFileGeodatabaseData.py
# Description: Use the UncompressFileGeodatabaseData tool to uncompress a geodatabase
# Author: ESRI

# import system modules 
import arcpy, os
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
geodatabase = "london.gdb"

try:
  # Process: Compress the data
  arcpy.UncompressFileGeodatabaseData_management(geodatabase)

except:
  # If an error occurred while running the tool print the messages
  print arcpy.GetMessages()

Environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

10/27/2014