I'm working in an Enterprise Geodatabase (Enterprise Version 11.3), and I have a point feature class that is in Iowa State Plane North. I currently have attribute rules that run on Insert and Update to calculate the Northing and Easting of the points. I have been asked to also include attribute fields called Latitude and Longitude and have those fields automatically calculate the Y & X values in Web Mercator. I don't believe that Arcade in an attribute rule can handle that process. I have tried creating a scheduled process to calculate the geometry, but so far my Python scripts have been generating values that aren't remotely close to being correct.
I would prefer not to have to manually run the Calculate Geometry tool, like I have the past couple of days.
Does anyone have pointers on how to write a Python script that would calculate the X & Y in Web Mercator?
Thanks!