I tried the !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y! python code after I geocated locations with an X and a Y and I did get results without any error codes.
My results looked like this: 2554640.03118 (latitude), 395983.7615536 (longitude) for all of my addresses that are located in Wisconsin, USA.
However, I am skeptical of using the results because the results for Latitude(x) were positive instead of negative.
So I am not using what I get from !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y! in version 10 SP1 of ArcGIS.
(In the USA, longitude is negative being west of the Prime meridian, and latitude is positive
as it is north of the equator.)
Hey guys,
I have an issue similar to this...
I know how to fill a field with the coordinates of points using the calculate geometry function. However, of the scales that I can select from, I cannot select Lat and Long but I can select decimal degrees. What I'm wondering is if it's possible to create, for example, a new field and use a python statement to manipulate the field filled with the decimal degrees to convert them to lat and long coordinates.
Thanks,
-Andrew