3

In ArcGIS 10, is there a way to add a field to a feature class even if it currently contains data?

3

Add Field ArcGIS 10 http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_fields/005s0000000v000000/

  • 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
  • 1
    Modifying existing field names is at top of ArcGIS Desktop Ideas that users would like to see Esri implement: ideas.arcgis.com/… – PolyGeo Sep 8 '10 at 0:01
6

To do this programmatically, use IClass.AddField. (Do NOT use IFieldsEdit.AddField on an existing dataset).

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.