Attribute Rule to calculate Centroid Values of a Polygon and Convert into Lat/Long

168
1
2 weeks ago
Boomer87
New Contributor

Hi everyone,

I am trying to create an attribute rule that calculates the X Centroid and Y Centroid of a polygon, whenever a new polygon is drawn which I have gotten to work. Except, does anybody know how to convert over these values into Lat/Long values via an attribute rule (either the same one or another separate one after the fact)? This would be for UTM Zone 10N.

My current attribute rules are as follows:

centroid($feature).x

centroid($feature).y

Boomer87_0-1715208590849.png

Eventually I'd actually like to see if there is a way to automate calculating the centroid of the polygon being drawn and spitting it out into a separate point feature class in an SDE with the correct lat/long values in UTM Zone 10N so something like (-123.945, 49) etc.

 

0 Kudos
1 Reply
RobertBorchert
Frequent Contributor III

why not put it in as lat long in the first place

0 Kudos