ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Output Coordinate System (Environment setting)

  • Usage notes
  • Dialog syntax
  • Scripting syntax

Tools that honor the Output Coordinate System environment will create output geodatasets with the specified coordinate system.

Processing (calculation of geometric relationships and modification of geometries) occurs in the same coordinate system as the output geodataset. This environment overrides the default coordinate system on output geodatasets created by geoprocessing tools.

For a description of how the default output coordinate system is determined, see Spatial reference and geoprocessing.

Usage notes

  • When the Output Coordinate System environment is different from the input coordinate system, the input is projected to the output coordinate system during tool execution. This projection will not affect the input.
  • A projection will not occur if either the input or output coordinate system is Unknown. If this does occur, the input's coordinates are assumed to be in the same coordinate system as the output coordinate system.
  • When the input and output coordinate system require a geographic transformation, set the Geographic Transformations environment.

Dialog syntax

This specifies the output coordinate system of geodatasets created by geoprocessing tools.

  • Same As Input—The output geodataset will have the same coordinate system as the input. This is the default.
  • As Specified Below—Choose the coordinate system for output geodatasets. Specify a coordinate system name or browse using the Spatial Reference Properties dialog box.
  • Same as Display—The coordinate system of the current map or scene will be used.
  • Same as Layer <name>—All layers are listed, and you can choose one as the coordinate system. Like the Same as Display option, the coordinate system of the layer is read and stored. The next time you examine the Output Coordinate System setting, it will read As Specified Below.

Scripting syntax

arcpy.env.outputCoordinateSystem = coordinate_system

ParameterExplanation

coordinate_system

By default, the coordinate system of an output will be the same as that of the input; otherwise, the Output Coordinate System can be set using any of the following:

  • SpatialReference object
  • A dataset
  • A .prj file
outputCoordinateSystem syntax

Script example

Project data into new coordinate system while buffering.

import arcpy

# Set the workspace, outputCoordinateSystem and geographicTransformations environments
arcpy.env.workspace = "c:/data"
arcpy.env.outputCoordinateSystem = arcpy.SpatialReference("WGS 1984 UTM Zone 18N")
arcpy.env.geographicTransformations = "Arc_1950_To_WGS_1984_5; PSAD_1956_To_WGS_1984_6"

arcpy.Buffer_analysis("roads.shp", "roads_buffer.shp", "10 meters")

Related topics

  • Spatial reference and geoprocessing
  • The properties of a spatial reference
  • What are map projections?
  • Geographic Transformations (Environment setting)
  • What is a geoprocessing environment setting?
  • Setting geoprocessing environments

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal