You are here:
Data support in ArcGIS
>
Shapefiles
About adding and deleting fields
ArcGIS allows you to modify the structure of shapefiles and dBASE tables by adding and deleting or columns. The name and 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
- In ArcCatalog, click the shapefile or dBASE table to which you want to add a field.
- Click the File menu and click Properties.
- Click the Fields tab.
- Click in the empty row below the last entry under Field Name and type the name of the new field.
- Click under Data Type next to the new field name and click the appropriate data type in the list.
The properties that are appropriate to the new field's data type appear in the Field Properties list.
- Click in the Field Properties list and type the properties.
Properties may include:
- Precision—The number of digits that can be stored in a number field. For example, the number 56.78 has a precision of 4.
- Scale—The number of digits to the right of the decimal point in a number in a field of type Float or Double. For example, the number 56.78 has a scale of 2. Scale is only used for Float and Double field types.
- Length—The length of a text field specified in characters.
- Click OK.
Adding a field in ArcMap
- In ArcMap, right-click the shapefile layer in the table of contents and click Open Attribute Table.
- Click the Options button and click Add Field.
- Type a field name in the Name text box.
- Click the Type drop-down arrow and click a type.
The properties that are appropriate to the new field's data type appear in the Field Properties list.
- Click in the Field Properties list and type the properties.
Properties may include:
- Precision—The number of digits that can be stored in a number field. For example, the number 56.78 has a precision of 4.
- Scale—The number of digits to the right of the decimal point in a number in a field of type float or double. For example, the number 56.78 has a scale of 2. Scale is only used for Float and Double field types.
- Length—The length of a text field specified in characters.
- Click OK.
Deleting a field in ArcCatalog
- In ArcCatalog, click the shapefile or dBASE table whose fields you want to delete.
- Click the File menu and click Properties.
- Click the Fields tab.
- Position the mouse pointer over the gray button to the left of the column you want to delete.
The pointer's icon changes to an arrow.
- Click the gray button to select the column.
The field is selected and its properties appear in the Field Properties list.
- Press the Delete key.
The selected field is removed from the list.
- Click OK.
Deleting a field in ArcMap
- In ArcMap, right-click the shapefile layer in the table of contents and click Open Attribute Table.
- Right-click the field heading in the table and click Delete Field.
- Click Yes in the warning window.
Please visit the
Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.