AnsweredAssumed Answered

Coordinate transformation in arcpy

Question asked by chaz6 on May 7, 2015
Latest reply on May 8, 2015 by curtvprice

As part of a script I need to convert coordinates from one SRS to another. This is the code I have so far, but I am missing the bit in the middle. I have done some extensive googling but I was not able to find a solution so I would appreciate some assistance.

 

import arcpy

inputSRS = 'Projected Coordinate Systems/National Grids/Europe/British National Grid' # Projected
outputSRS = 'Geographic Coordinate Systems/World/WGS 1984' # Geographic
trsOut = 'OSGB_1936_To_WGS_1984_Petroleum'

srIn = arcpy.SpatialReference(inputSRS)
srOut = arcpy.SpatialReference(outputSRS)

inX = 210000
inY = 310000

# Code goes here

print outX, outY # "-4.81042685256 52.6543521582"

Outcomes