I have a shape column in a point Feature Class with projection srid = 2236, Florida East. I need the lat/long of the shape in decimal degrees in a 3rd party application. Using sql server I can get shape.STX and shape.STY but they are represented in feet.
Do you know how to take the STX in feet and convert it to decimal degrees? I found some vbscript and converted it to a sql function but I'm off by 10^3 on many points compared to the attribute table where I created a column to store x,y and ran calculate geometry to populate.
The programming must start and end in T-Sql, but I can call an outside program if necessary. I wouldn't mind calling an arcgis rest utility if I knew of one that would do the conversion for me.
One other alternative is to be able to automate the "calculate geometry" we perform manually to update the x,y of the shape. If I could run this nightly I could use the attribute table instead of trying to perform the math in t-sql.