Geographic Transformations (Environment setting)

Tools that honor the Geographic Transformations environment will use the transformation methods when projecting data.

Usage notes

Dialog syntax

Scripting syntax

arcpy.env.geographicTransformations = geographic_transformations

Parameter

Explanation

geographic_transformations

A semicolon-delimited string of transformation methods. This can include system-provided transformation methods as well as custom transformation methods created using the Create Custom Geographic Transformation tool.

geographicTransformations 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")

Verwandte Themen

9/11/2013