Define Projection (Coverage)

License Level:BasicStandardAdvanced

Summary

Records the coordinate system information of the Input Coverage including any associated projection parameters, such as datum and spheroid.

It creates or modifies the Input Coverage's projection definition file (PRJ) that stores the projection parameters.

Learn more about how Define Projection works

Usage

Syntax

DefineProjection_arc (in_cover, projection_file)
ParameterExplanationData Type
in_cover

The coverage for which the projection information is being defined.

Coverage
projection_file

The name of a text file defining the input projection parameters.

File

Code Sample

DefineProjection example (stand-alone script)

The following stand-alone script demonstrates how to define the projection on a global coverage. The coverage is stored in geographic coordinates.

# Name: DefineProjection_Example.py
# Description: Defines the projection of a global coverage
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
inCover = "worldgrat"
projectionFile = "newgeo.prj"

# Execute DefineProjection
arcpy.DefineProjection_arc (inCover, projectionFile)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed
6/18/2012