Show Navigation | Hide Navigation
You are here:
Data support in ArcGIS > Shapefiles

Adding and deleting fields in shapefiles

Release 9.2
Last modified March 12, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Shapefiles"


Related Topics

About adding and deleting fields

ArcGIS allows you to modify the structure of shapefiles and dBASE tables by adding and deleting fields or attribute columns. The name and data type of an existing field can't be modified; instead, you must add a new field with the appropriate name and data type. A field's name must be no more than 10 characters in length; additional characters will be truncated.

A shapefile's FID and Shape field and a dBASE table's OID field can't be deleted. The OID field is a virtual column created by ArcGIS software when accessing the table's contents; it guarantees that each record in the table has at least one unique value. Shapefiles and dBASE tables must have at least one attribute field in addition to the FID and Shape fields or the OID field. After adding fields, you must start an edit session in ArcMap to define their attribute values.

The field data types supported by ArcGIS are discussed in Geodatabase field data types. The data mapping section in How data converts when importing has tables that show how data types for several data sources are mapped to the ArcGIS geodatabase field data types.


How to add and delete fields

Adding a field in ArcCatalog

  1. In ArcCatalog, click the shapefile or dBASE table to which you want to add a field.
  2. Click the File menu and click Properties.
  3. Click the Fields tab.
  4. Click in the empty row below the last entry under Field Name and type the name of the new field.
  5. Click under Data Type next to the new field name and click the appropriate data type in the list.

  6. The properties that are appropriate to the new field's data type appear in the Field Properties list.
  7. Click in the Field Properties list and type the properties.
  8. Properties may include:

  9. Click OK.

Tip

Adding a field in ArcMap

  1. In ArcMap, right-click the shapefile layer in the table of contents and click Open Attribute Table.
  2. Click the Options button and click Add Field.
  3. Type a field name in the Name text box.
  4. Click the Type drop-down arrow and click a type.
  5. The properties that are appropriate to the new field's data type appear in the Field Properties list.
  6. Click in the Field Properties list and type the properties.
  7. Properties may include:

  8. Click OK.

Tip

Deleting a field in ArcCatalog

  1. In ArcCatalog, click the shapefile or dBASE table whose fields you want to delete.
  2. Click the File menu and click Properties.

  3. Click the Fields tab.
  4. Position the mouse pointer over the gray button to the left of the column you want to delete.
  5. The pointer's icon changes to an arrow.
  6. Click the gray button to select the column.

  7. The field is selected and its properties appear in the Field Properties list.
  8. Press the Delete key.

  9. The selected field is removed from the list.
  10. Click OK.

Tip

Deleting a field in ArcMap

  1. In ArcMap, right-click the shapefile layer in the table of contents and click Open Attribute Table.
  2. Right-click the field heading in the table and click Delete Field.
  3. Click Yes in the warning window.

Tip
Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.