Skip to main content

添加字段 (多个) (数据管理工具)

汇总

将新字段添加到表格、要素类或栅格。

用法

注意:

此工具会修改输入数据。 有关详细信息以及避免意外更改数据的策略,请参阅 修改或更新输入数据的工具

  • 对于 shapefile 和 dBase 表,如果字段类型定义为字符型,则会为每条记录插入空白行。 如果字段类型定义为数值项,则会为每条记录插入零。

  • 字段属性参数指定的字段将具有以下默认属性:

    • 允许空值属性将为真。

    • 可编辑属性将为真。

    • 必填项属性将为假。

    • 精度小数位数属性由字段类型和数据源默认值设置。

  • 可以使用字段属性模板表参数将字段添加到输入中。 如果提供了两个参数的值,则将根据两个参数添加字段。

  • 字段属性参数的字段长度选项仅适用于文本类型的字段。

  • shapefile 不支持字段别名,因此无法将字段别名添加到 shapefile。

  • 栅格类型的字段允许将栅格影像作为属性包含在内。 它存储在地理数据库中或与地理数据库一同存储。 当影像是描述要素的最佳途径时,这很有用。 无法为栅格类型的字段设置精度、小数位数和长度。

参数

标注 说明 数据类型

输入表

将添加字段的输入表。 字段将被添加到现有输入表,并且不会创建新的输出表。

可将字段添加到地理数据库中的要素类、shapefile、coverage、独立表、栅格目录、带属性表的栅格和图层。

Table View; Raster Layer; Mosaic Layer

字段属性

(可选)

将添加到输入表的字段及其属性。

值表列:

  • Field NameThe name of the field that will be added to the input table.

  • Field TypeThe field type of the new field.

    • Short (16-bit integer)The field type will be short. Short fields support whole numbers between -32,768 and 32,767.

    • Long (32-bit integer)The field type will be long. Long fields support whole numbers between -2,147,483,648 and 2,147,483,647.

    • Big integer (64-bit integer)The field type will be big integer. Big integer fields support whole numbers between -(253) and 253.

    • Float (32-bit floating point)The field type will be float. Float fields support fractional numbers between -3.4E38 and 1.2E38.

    • Double (64-bit floating point)The field type will be double. Double fields support fractional numbers between -2.2E308 and 1.8E308.

    • TextThe field type will be text. Text fields support a string of characters.

    • DateThe field type will be date. Date fields support date and time values.

    • Date (high precision)The field type will be high precision date. High precision date fields support date and time values with millisecond time.

    • Date onlyThe field type will be date only. Date only fields support date values with no time values.

    • Time onlyThe field type will be time only. Time only fields support time values with no date values.

    • Timestamp offsetThe field type will be timestamp offset. Timestamp offset fields support a date, time, and offset from a UTC value.

    • BLOB (binary data)The field type will be BLOB. BLOB fields support data stored as a long sequence of binary numbers. You need a custom loader or viewer or a third-party application to load items into a BLOB field or view the contents of a BLOB field.

    • GUID (globally unique identifier)The field type will be GUID. GUID fields store registry-style strings consisting of 36 characters enclosed in curly brackets.

    • RasterThe field type will be raster. Raster fields can store raster data in or alongside the geodatabase. All ArcGIS software-supported raster dataset formats can be stored, but it is recommended that only small images be used.

  • Field AliasThe alternate name for the field. This is used to describe cryptic field names. This value only applies to geodatabases.

  • Field LengthThe length of the field being added. This sets the maximum number of allowable characters for each record of the field. This option is only applicable to fields of type text. The default length is 255.

  • Default ValueThe default value of the field.

  • Field DomainThe geodatabase domain that will be assigned to the field.

  • PrecisionThe number of significant digits used to represent attribute values.

  • ScaleThe maximum size of data that can be stored in the field.

  • Field supports null valuesSpecifies whether the field can contain null values.

  • Field is requiredSpecifies whether the field is a required field.

Value Table

模板表

(可选)

将用作模板以定义要添加的属性字段的要素类或表。

除了字段属性参数指定的任何字段之外,使用此参数指定的输入中的字段将被添加到输入表参数值中。

Table View

派生输出

标注 说明 数据类型

更新的输入表

更新的输入表。

Table View; Raster Layer; Mosaic Layer

环境

当前工作空间, 传送字段属性域描述

特殊情况

传送字段属性域描述

When this environment is checked, any fields that have an associated domain will use the domain description instead of the field's value. Values from fields that do not have a domain will be unaffected.

许可信息

  • 基本: 是
  • 标准: 是
  • 高级: 是