I want to add latitude and longitude column and their values in decimal degrees to my shapefile (fishnet). How to use ArcPy for that?
I have added lat and long using arcpy.AddGeometryAttributes_management
but the unit I need is degree decimal and I got it in meters. My code is as below:
arcpy.AddGeometryAttributes_management("fish_lyr","CENTROID")
When specifying degree decimal:
arcpy.AddGeometryAttributes_management("fish_lyr","CENTROID","DEGREEDECIMALS")
it gives the following error:
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of FEET_US | METERS | KILOMETERS | MILES_US | NAUTICAL_MILES | YARDS.
Failed to execute (AddGeometryAttributes).