Hi Lucas,Sorry, I mis-read your previous post. You can update from meters to DD using the 'arcpy.UpdateCursor' function. With cursors, you have the ability to set a working coordinate system. Ex:import arcpy
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"
fc = "Cities_Meters"
prj = r"C:\Program Files (x86)\ArcGIS\Desktop10.0\Coordinate Systems\Geographic Coordinate Systems\World\WGS 1984.prj"
spatRef = arcpy.SpatialReference(prj)
env.geographicTransformations = "NAD_1983_To_WGS_1984_1"
rows = arcpy.UpdateCursor(fc, "", spatRef)
for row in rows:
geom = row.shape
row.POINT_X = geom.centroid.X
row.POINT_Y = geom.centroid.Y
rows.updateRow(row)
del row, rows
Since I am switching datums from NAD_83 to WGS_84, I needed to apply a geographic transformation. You will need to update 'row.POINT_X' and 'row.POINT_Y' with the fields you want to store the DD values.Also, here is how you can do this using the field calculator:def func():
fc = "Cities_Meters"
prj = r"C:\Program Files (x86)\ArcGIS\Desktop10.0\Coordinate Systems\Geographic Coordinate Systems\World\WGS 1984.prj"
spatRef = arcpy.SpatialReference(prj)
arcpy.env.geographicTransformations = "NAD_1983_To_WGS_1984_1"
rows = arcpy.UpdateCursor(fc, "", spatRef)
for row in rows:
geom = row.shape
return geom.centroid.X
func()
With the field calculator you will have to run it for each individual field, and change 'geom.centroid.X' to 'geom.centroid.Y' for the appropriate field.