Compress File Geodatabase Data (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Compresses file geodatabase data.
Usage tips
Once compressed, a feature class or table is read-only and cannot be edited. Compression is ideally suited to mature datasets that do not require further editing. However, if required, a compressed dataset can always be uncompressed to return it to its original, read-write format. To learn more about file geodatabase compression, see About compressing file geodatabase data.
You can compress a geodatabase, feature dataset, standalone feature class or table. When you compress a geodatabase, all feature classes and tables within it compress. When you compress a feature dataset, all its feature classes compress.
When you specify a geodatabase as input, this tool compresses all vector feature classes and tables in the geodatabase. It does not compress raster catalogs or raster datasets. If it encounters these in the specified geodatabase, it skips over them. You can individually compress a raster catalog or raster dataset with this tool, however it makes little sense since the data does not reduce in size. This support is provided strictly as a means to allow ArcPublisher to package to compressed and locked file geodatabase raster catalogs and datasets.
You cannot individually compress or uncompress a feature class in a feature dataset to produce a mixed state where some feature classes are compressed and others are not. Compressed feature datasets allow you to add an uncompressed feature class through operations such as creating a new, empty feature class, copying and pasting, and importing. However, you cannot edit the uncompressed feature class if there are compressed feature classes in the same feature dataset. Once you've finished adding one or more uncompressed feature classes, you can re-compress or uncompress the feature dataset so all its feature classes are either compressed or uncompressed.
When you display compressed feature class records in ArcCatalog or ArcMap, they may not display in the same order as they did before you compressed the data. The records display in the order in which they are compressed and stored.
The following environment settings affect this tool: workspace.
Command line syntax
An overview of the Command Line window
CompressFileGeodatabaseData_management <in_data>
Parameter | Explanation | Data Type |
<in_data> |
The geodatabase, feature dataset, feature class, or table to compress. |
Geodatabase|Feature dataset |Feature class|Table |
CompressFileGeodatabaseData "d:\london.gdb"
Scripting syntax
About getting started with writing geoprocessing scripts
CompressFileGeodatabaseData_management (in_data)
Parameter | Explanation | Data Type |
in_data (Required) |
The geodatabase, feature dataset, feature class, or table to compress. |
Geodatabase|Feature dataset |Feature class|Table |
# Create the Geoprocessor object import arcgisscripting gp = arcgisscripting.create() gp.CompressFileGeodatabaseData ("d:\london.gdb")