CalculateGeometryAttributes_management give wrong values

558
1
09-24-2020 02:25 AM
anyry
by
New Contributor III

Hello, 

I don't understand why if I use CalculateGeometryAttributes_management in metres it give me same values as X,Y coordinate but if I want decimal degrees value, it give me different values (picture). 

Can anyone help me please?

Thanks

arcpy.CalculateGeometryAttributes_management("C:\\Users\\aneta.ryglova\\Desktop\\layout pdf\\body1.shp", [["lat", "POINT_X"], ["long", "POINT_Y"]], "", "", "", "DD")
0 Kudos
1 Reply
MehdiPira1
Esri Contributor

Hi Aneta Ryglová‌,

I reckon your shapefile feature class is projected.

If it’s projected, use Project tool in the toolboxes to convert your shapefiles’ spatial reference to a geographic coordinate system before using CalculateGeometryAttributes.

0 Kudos