Project (Data Management)

Changes the coordinate system of your Input Dataset or Feature Class to a new Output Dataset or Feature Class with the newly defined coordinate system, including the datum and spheroid.


Usage tips

Syntax

Project_management (in_dataset, out_dataset, out_coor_system, transform_method, in_coor_system)
Parameter Explanation Datatype
Input Dataset or Feature Class (Required)

The feature class whose coordinates are to be converted.

Feature Layer | Feature Dataset
Output Dataset or Feature Class (Required)

The feature class whose coordinates have been converted into the new coordinate system.

Geodataset
Output Coordinate System (Required)

The coordinate system to be applied to the Output Dataset or Feature Class.

Coordinate System
Geographic Transformation (Optional)

A method for converting data between two geographic coordinate systems or datums. Depending on the input and output coordinate systems this parameter may be required. For more information on geographic transformations, see Geographic transformation methods.

String
Input Coordinate System (Optional)

The coordinate system of the Input Dataset or Feature Class.

Coordinate System
Data types for geoprocessing tool parameters

Script Example

# Create the Geoprocessor Object
import arcgisscripting
gp = arcgisscripting.create()

# Set the workspace
GP.workspace = "c:/Test_data/Personal GDB/canada.mdb"

# Set the Toolbox
GP.toolbox = "management"

# Set the spatial reference variable
cs = "C:/ArcGIS/Coordinate Systems/Geographic Coordinate Systems/North America/North American Datum 1983.prj"

# Run tool in a try and except
try:
    GP.project (GP.workspace + "/prov/province_buffer1", "province_buffer5", cs, "NAD_1927_To_NAD_1983_NTv2_Canada")

except:
    print GP.GetMessages(2)

See Also

  • Build (Coverage)
  • Clean (Coverage)
  • Define Projection (Data Management)
  • Project (Coverage)
  • Create Custom Geographic Transformation (Data Management)