Is it possible to change the precision of a field in the attribute table in ArcMap?
I have a shapefile with X and y coordinates of pointlocations. I would like to change the precision. Is this possible?
Is it possible to change the precision of a field in the attribute table in ArcMap?
I have a shapefile with X and y coordinates of pointlocations. I would like to change the precision. Is this possible?
Before ArcGIS 10.2 you could not rename a field using the Alter Field-tool. With 10.2. upwards is much easier to get this to work. You have to add a new field with the desired precision to your shapefile and copy all the values from the one column to the next one using fieldcalculator. Then you can delete the original column and rename the new one to the original ones name.
Alternativly you can write a script:
arcpy.AddField_management(myTable, "NewName", "DOUBLE", decNumbers)
for row in arcpy.SearchCursor(myTable):
row.setValue("NewName", row.getValue("OldName"))
arcpy.DeleteField_management(myTable, "OldName")
arcpy.AlterField_management(myTable, "NewName", "OldName")