Solved! Go to Solution.
return shape.centroid.X
return shape.centroid.Y
Apologies!! I am coming into this thread several years too late. I am literally trying to accomplish the exact same thing but I can't get my python code right...I see your original attachment is no longer...I've followed the steps in the scrn shot of the calcutalor but I am so new to python...i'm probably missing an exclamation mark or something ridiculous....here's hoping you can help me as well. I've been googling python snippets all day and can't seem to find what works.
thanks as always
Lana
lana donaldson, post your code and we can help. Or, better yet, start a new question, since this one is answered.
I would like to calculate the centroid (x and y co-ordinate) of a polygon using model builder - ArcGIS 10.1 Standard. I don't have access to the tool Feature to Point as the standard licence doesn't allow this option and there doesn't seem to be a Calculate Geometry tool within model builder. Can anyone help please
Apologies!! I am coming into this thread several years too late. I am literally trying to accomplish the exact same thing but I can't get my python code right...I see your original attachment is no longer...I've followed the steps in the scrn shot of the calcutalor but I am so new to python...i'm probably missing an exclamation mark or something ridiculous....here's hoping you can help me as well. I've been googling python snippets all day and can't seem to find what works.
thanks as always
Lana