It appears this is a bug, NIM097273.
Alan and Jake,
The Python script works great, but unfortunately I have some Null Values in my GPS Data(we had to digitize some data). Is there any way to use the python script you provided and have it leave all Null or blank values alone? When I use the python script it will remove any points with no GPS data thus I'm losing points, any help would be appreciated thank you!
Before you assign the new X and Y values to the point, just check if they have values.
if row.GPS_X and row.GPS_Y:
# continue processing new XY coordinate
else:
# handle null XY coordinate values
EDIT:
Or better yet, use a where_clause parameter to just ignore the null values at the very beginning when creating the cursor.
where_clause = "GPS_X is not null and GPS_Y is not null"
Thanks Blake for the response! But I was wondering how I could write that in a Field Calculator. Currently I'm using this script:
I was wondering how I could write to leave all blank values alone and only calculate points that have a value. Thanks again for any help!
Ah, I see. In this case, it would be easiest to simply select by attributes where GPS_X is not null and GPS_Y is not null then perform the field calc you have and it will only affect the selected records.