AnsweredAssumed Answered

field calculator

Question asked by geonetadmin on Nov 4, 2011
Latest reply on Nov 6, 2011 by rfairhur24
Original User: luke.kaim

I need some help with this code. I need to be able to change the units of X and Y within model builder. Therefore, I can not use calculate geometry. How do I convert the X and Y locations into decimal degrees using the field calculator? The below code is not working. I want to find X and Y location of points and then be able to change the units of the points from meters to decimal degrees. I need to be able to automate this process. Please help.

X-coordinate of a point

Dim dblX As Double
Dim pPoint As IPoint
Set pPoint = [Shape]
dblX = pPoint.X

Y-coordinate of a point

Dim dblY As Double
Dim pPoint As IPoint
Set pPoint = [Shape]
dblY = pPoint.Y

"Shape and length properties of the geometry field can be modified with unit types expressed with an @ sign".



Thank you,
Luke Kaim

Thank you
Luke Kaim (SIE)
Lucas.Kaim@maine.edu
(914)263-7866

Outcomes