Create Coverage (Coverage)
Summary
Creates a new coverage.
The coverage can be initialized with the TIC, BND, and PRJ files copied from an existing coverage or grid.
Usage
-
The coordinate precision of the Output Coverage is determined by the Precision for derived coverages environment, regardless of whether the Template Coverage is specified.
-
To establish the location of the TICs in the Output Coverage, specify a Template Coverage or edit the Output Coverage manually. You can then use the Output Coverage as the destination (output) coverage of the Transform tool.
Syntax
Parameter | Explanation | Data Type |
out_cover |
The name of the coverage that will be created. | Coverage |
template_cover (Optional) |
An existing coverage or grid whose TIC file, boundary information (BND file), and projection information (PRJ file) will be copied to the Output Coverage. | Coverage |
Code Sample
The following stand-alone script demonstrates how to create an empty coverage.
# Name: Create_Example.py
# Description: Creates an empty coverage.
# Requirements: ArcInfo Workstation
# Import system modules
import arcpy
import os
# Set local variables
outCover = "c:/output/emptycov"
# The output workspace must exist at least as an empty directory.
# Use os.makedirs if the parent directory may not exist.
try:
os.makedirs(os.path.dirname(outCover))
except:
pass
# Execute Create
arcpy.Create_arc(outCover)