I'm trying to calculate the location of several points in a python script. However, the Add XY tool is in feet, rather than decimal degrees. The following Calculate Field lines just cause an error to be spit out. Trying the Calculate field tool inside Arc with any @ in the formula also results in an error. How do I make this work without reprojecting? Projection errors were causing problems earlier.
arcpy.CalculateField_management(routeVert, POINT_X", "!SHAPE.CENTROID.X@DECIMALDEGREES!", "PYTHON") arcpy.CalculateField_management(routeVert, "POINT_Y", "!SHAPE.CENTROID.y@DECIMALDEGREES!", "PYTHON")
أكثر...
arcpy.CalculateField_management(routeVert, POINT_X", "!SHAPE.CENTROID.X@DECIMALDEGREES!", "PYTHON") arcpy.CalculateField_management(routeVert, "POINT_Y", "!SHAPE.CENTROID.y@DECIMALDEGREES!", "PYTHON")
أكثر...