In ArcGIS 10, is there a way to add a field to a feature class even if it currently contains data?
Asked
Active
Viewed 1.4k times
3 Answers
6
To do this programmatically, use IClass.AddField. (Do NOT use IFieldsEdit.AddField on an existing dataset).
Kirk Kuykendall
- 25,787
- 8
- 65
- 153
3
Add Field ArcGIS 10 http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_fields/005s0000000v000000/
Mapperz
- 49,701
- 9
- 73
- 132
-
Thanks. I had been trying to do it through ArcCatalog, but this did what I needed. – Britt Wescott Aug 30 '10 at 15:48
-
Is there any way to modify an existing field name (not an alias)? – Britt Wescott Aug 30 '10 at 19:25
-
1Modifying existing field names is at top of ArcGIS Desktop Ideas that users would like to see Esri implement: http://ideas.arcgis.com/ideaList?c=09a300000004xET&category=ArcGIS+Desktop&sort=top – PolyGeo Sep 08 '10 at 00:01
2
In Python, using the ArcPy site package, you'd use
arcpy.AddField_management(.....)
You cannot modify the actual field name of an existing field. I would LOVE to be able to do that, but even if they implement it, I bet it'll be similar to renaming in SQL. That is, the net effect is a renamed field, but the underlying operation is: make new field with new field name, copy contents from old field, drop old field name.
Kenton W
- 1,085
- 1
- 11
- 16