HOW TO
In ArcGIS Pro, when creating a feature class and table, a data type is selected for each field. Data types include number types, text types, date types, binary large objects (BLOBs), or globally unique identifiers (GUIDs). In some cases, it is desirable to change the data type of certain fields, after the table or feature class is created, to manage data storage, facilitate analysis, and for data management.
There are two options available to change the data type of an existing field in ArcGIS Pro. The first option is to create a new field with a desired data type, and to transfer attribute data from the existing field to the new field using the Calculate Field tool. The second option is to use the Feature Class To Feature Class tool to output a new feature class, including its respective attribute table and fields, with the desired data type.
Create a new field and populate it with the attribute data from an existing field using the Calculate Field tool. Use the workflow below to change the data type from Double to Float.
The attribute data from the field with Double data type is transferred to the new field with the Float data type.
Note: For example workflows to change data types from text to number and vice versa, refer to How To: Convert a string field to a numeric field.
Create a new feature class and attribute table with a new data type using the Feature Class to Feature Class tool. Use the workflow below to change the data type from Long Integer to Short Integer.
The data type of the FIPS26 field is changed from Short Integer to Long Integer in the new feature class.
Note: It is not possible to change the data type from text to numeric, and vice versa using the Feature Class To Feature Class tool. Refer to ArcGIS Pro: 001156: Failed on input OID <value>; could not write value '<value>' to output field <value>. for more information.
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen