i have polygon data.

i need add xy coordinates for polygons using ModelBuilder.

enter image description here

i'm getting this type of data......

enter image description here

New contributor
rakesh reddy is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

put on hold as unclear what you're asking by Hornbydd, Vince, whyzar, Fran Raga, BERA Jul 13 at 13:07

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Look good to me, what is your question/problem exactly ? – J.R Jul 12 at 11:55
  • It is not clear what the problem is that you need to solve. Are you looking for an alternative to the field calculation you have shown for your model or are you unsure how to insert the field calculation tool you have shown into your model? Or are you asking for general help on how to use ModelBuilder? – Richard Fairhurst Jul 12 at 12:02
  • im trying to calculate XY coordinate using model builder. i have tried !SHAPE!.CENTROID.X this expression for that, but i didn't get XY cordinates and im getting someother values... – rakesh reddy Jul 12 at 12:23
  • I think you want to get the geographic coordinates rather than the planar coordinates you are getting. Is that right? – Marcelo Villa Jul 12 at 13:29
  • 1
    Can you specify what is the Spatial Reference of the layer? – Marcelo Villa Jul 12 at 16:47