arcpy.CalculateField_management(Maxtbl, "XCoord", "!shape.extent.XMax!", "PYTHON_9.3", "")
Solved! Go to Solution.
Is there a way to choose what unit of measure you have? It defaults to the current coordinate systems.urows = arcpy.da.UpdateCursor(FEATURECLASS) for urow in urows: urow.LATITUDE = !shape.extent.XMax@meters! urow.LONGITUDE = !shape.extent.YMax@meters! urows.updateRow(urow) del urow
Is there a way to calculate lat/long in python at all?