Specify the
that will be used for processing and set to the output geodataset. The coordinate system (
or
) defines the location of the spatial data on the earth.
If the geoprocessing tool has an input feature class, and the coordinate system environment is not set, the the coordinate system of the input* will be used as the processing and set as the output feature class' coordinate system. To override this, set the "Coordinate System environment" to the desired coordinate system.
* For tools which have multiple inputs (intersect for example) the coordinate of the first feature class in the list will be used.
- When the coordinate system environment is different than the input feature class' coordinate system, the input features are projected to the output coordinate system during tool execution. This projecting of the features will not affect the input feature class. Keep in mind that a projection can only be done between two known coordinate systems. So if either the input or output dataset's coordinate system is unknown, no projection occurs. Then the input feature's coordinates are assumed to be in the same coordinate system as the processing and output coordinate system.
An overview of the command line window
OutputCoordinateSystem <outputCoordinateSystem>
| Parameters |
Explanation |
Datatype |
| <outputCoordinateSystem> |
Specifies the output features coordinate system. If not explicitly set and the output does not reside inside a feature dataset, the spatial reference of the first input will be used.
- Same As Input—If input features have a coordinate system, then the output features will have the same coordinate system. This is the default.
- As specified below—Choose a new coordinate system for output features. You may enter a coordinate system name or use the Spatial Reference Properties dialog box.
|
Coordiante System |
Data types for geoprocessing tool parameters
Command line example
outputCoordinateSystem "Coordinate Systems\Projected Coordinate Systems\Utm\Nad 1983\NAD 1983 UTM Zone 22N.prj"
An overview of scripting in geoprocessing
OutputCoordinateSystem (outputCoordinateSystem)
| Parameters |
Explanation |
Datatype |
| outputCoordinateSystem (Required) |
Specifies the output features coordinate system. If not explicitly set and the output does not reside inside a feature dataset, the spatial reference of the first input will be used.
- Same As Input—If input features have a coordinate system, then the output features will have the same coordinate system. This is the default.
- As specified below—Choose a new coordinate system for output features. You may enter a coordinate system name or use the Spatial Reference Properties dialog box.
|
Coordinate System |
Data types for geoprocessing tool parameters
Script example
import arcgisscripting
gp = arcgisscripting.create()
gp.workspace = "h:/workspace"
gp.OutputCoordinateSystem = "Coordinate Systems\Projected Coordinate Systems\Utm\Nad 1983\NAD 1983 UTM Zone 22N.prj"