Summary
Converts a coverage to an interchange file for transfer to another platform.
Usage
When exporting a coverage, all associated INFO tables are written to the interchange file. For example, if the coverage name specified for input data is Forest, an INFO table named Forest.LABEL would be saved in the interchange file. A table named Forest1.LABEL, however, would not be saved in the interchange file.
Export files created with the Compression type parameter set to FULL can be significantly smaller than export files created with the PARTIAL or NONE options.
Exporting a grid can result in an export file much larger than the original grid, even when FULL compression is used. This is because each grid cell must be represented in the export file in ASCII format, which is less efficient than the grid's binary format. Also, integer grids are stored in a compressed format, which cannot be maintained in the export file.
The best solution is not to export large grids. To create a single file for transfer, a utility, such as PKZIP (or "tar" on UNIX systems), can be used to place the workspace containing the grid into a single file. Versions of PKZIP and tar are available on both UNIX and PC systems. Warning: Do not PKZIP or tar just the grid, because you'll lose the INFO tables. If you don't want to transfer all the grids in your workspace, create a temporary workspace and copy the grids to be transferred into it.
Coverages to be exported must not contain edit masks. In other words, do not export an uncleaned cover. Run the Build or Clean tool to remove edit masks (msk.adf file in the coverage directory).
Export has a limit of -999999999 on negative User-IDs.
Export files for coverages with nondefault text alignment will have data loss if imported to a version prior to 8.0.1.
When exporting text files, the FULL and PARTIAL compression options support line lengths up to 300 characters. Longer line lengths will get truncated. The NONE option supports up to 80 characters per line.
Syntax
Export_arc (feature_type, in_dataset, interchange_file, {compression_type}, {max_lines})
Parameter | Explanation | Data Type |
feature_type | The data type to be exported.
| String |
in_dataset | The dataset or file to export. | Data Element |
interchange_file | The prefix name of the interchange file or files to be created by Export. A volume ID of E00 will be appended to the file name of the first interchange file, E01 to the second file, and so on. Each subsequent file is created when the {max_lines} for each file is reached. | File |
compression_type (Optional) | Specifies how numbers and blanks will be compressed in the export file. There are three options:
| String |
max_lines (Optional) | Maximum number of lines for each volume (for example, disk file) of an Export To Interchange File file. A volume has the extension .E00 through .E99. Only one export file is created if this is not specified. | Long |
Code sample
Export example (stand-alone script)
The following stand-alone script demonstrates how to export a coverage to an interchange file.
# Name: Export_Example.py
# Description: Exports a coverage to ArcInfo interchange format
# Requirements: ArcInfo Workstation
# Import system modules
import arcpy
from arcpy import env
# Set environment settings
env.workspace = "C:/data"
# Set local variables
featureType = "COVER"
inDataset = "stand"
interchangeFile = "C:/output/stand.e00"
compressionType = "NONE"
#Execute Export
arcpy.Export_arc(featureType, inDataset, interchangeFile, compressionType, "")
Environments
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: No
- ArcGIS Desktop Advanced: Requires ArcInfo Workstation installed