I am trying to calculate the centroids of polygons and found SHAPE@XY value are not centroids, instead they are truecentroids.
Script which I have used is.
lstFieldsList = ["ID", "SHAPE@XY", "SHAPE@TRUECENTROID"]
with arcpy.da.SearchCursor(fc, lstFieldsList) as searchRows:
for searchRow in searchRows:
120 (13.397784197052292, 52.472906875319225) (13.397784197052292, 52.472906875319225)
I have found the workaround to extract centriods by using SHAPE@centroid.X, SHAPE@centroid.Y.
Shape file is attached for your test.
Is this a bug or I am doing something wrong?
I am using ArcGIS 10.6.1.9270 on Windows Server 2008_DE with service pack 1