Skip to main content

计算几何字段属性规则 (数据管理工具)

汇总

生成属性规则,以计算要素几何信息并将其写入给定字段。 几何属性表示各要素的空间或几何特性以及位置,例如长度或面积以及 x、y、z 坐标和 m 值。

用法

  • 长度和面积将以输入要素坐标系的单位进行计算,除非在长度单位面积单位参数中指定了不同的单位。

    了解有关地理处理工具中长度和面积单位的详细信息

  • 可选坐标格式参数要求输入表的空间参考为地理坐标系。

  • 如果正在编辑输入类,则工具运行将失败。

  • 使用此工具创建的规则配置为仅在编辑设置为几何计算目标的一个或多个 SHAPE 字段时触发。

参数

标注 说明 数据类型

输入表

将应用新规则的表或要素类。

Feature Layer; Annotation Layer; Dimension Layer; Oriented Imagery Layer; Catalog Layer

输出文件夹

用于保存输出的文件夹。

Folder

几何属性

将在其中计算指定几何属性的字段。

您可以选择现有字段或提供新字段名称。 如果提供了新字段名称,则字段类型将根据写入该字段的值类型确定。 计数属性将写入长整型字段;面积、长度、x、y、z 坐标以及 m 值属性将写入双精度字段;度分秒或 MGRS 等坐标记法将写入文本字段。

除非另有说明,否则面积和长度属性是使用 2D 笛卡尔算法的平面测量值。

值表列:

  • Field (Existing or New)Field in which to calculate a geometry property.

  • PropertyGeometry property to calculate into the target field.

    • AreaAn attribute will be added to store the area of each polygon feature.

    • Area (geodesic)An attribute will be added to store the shape-preserving geodesic area of each polygon feature.

    • Centroid x-coordinateAn attribute will be added to store the centroid x-coordinate of each feature.

    • Centroid y-coordinateAn attribute will be added to store the centroid y-coordinate of each feature.

    • Centroid z-coordinateAn attribute will be added to store the centroid z-coordinate of each feature.

    • Centroid m-valueAn attribute will be added to store the centroid m-value of each feature.

    • Central point x-coordinateAn attribute will be added to store the x-coordinate of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Central point y-coordinateAn attribute will be added to store the y-coordinate of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Central point z-coordinateAn attribute will be added to store the z-coordinate of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Central point m-valueAn attribute will be added to store the m-value of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Number of curvesAn attribute will be added to store the number of curves in each feature. Curves include elliptical arcs, circular arcs, and Bezier curves.

    • Number of holesAn attribute will be added to store the number of interior holes within each polygon feature.

    • Minimum x-coordinateAn attribute will be added to store the minimum x-coordinate of each feature's extent.

    • Minimum y-coordinateAn attribute will be added to store the minimum y-coordinate of each feature's extent.

    • Minimum z-coordinateAn attribute will be added to store the minimum z-coordinate of each feature's extent.

    • Maximum x-coordinateAn attribute will be added to store the maximum x-coordinate of each feature's extent.

    • Maximum y-coordinateAn attribute will be added to store the maximum y-coordinate of each feature's extent.

    • Maximum z-coordinateAn attribute will be added to store the maximum z-coordinate of each feature's extent.

    • LengthAn attribute will be added to store the length of each line feature.

    • Length (geodesic)An attribute will be added to store the shape-preserving geodesic length of each line feature.

    • Length (3D)An attribute will be added to store the 3D length of each line feature.

    • Line bearingAn attribute will be added to store the start-to-end bearing of each line feature. Values range from 0 to 360, with 0 meaning north, 90 east, 180 south, 270 west, and so on.

    • Line angleAn attribute will be added to store the start-to-end arithmetic angle of each line feature. Values range from 0 to 360, with 0 meaning north, 90 east, 180 south, 270 west, and so on.

    • Line start x-coordinateAn attribute will be added to store the x-coordinate of the start point of each line feature.

    • Line start y-coordinateAn attribute will be added to store the y-coordinate of the start point of each line feature.

    • Line start z-coordinateAn attribute will be added to store the z-coordinate of the start point of each line feature.

    • Line start m-valueAn attribute will be added to store the m-value of the start point of each line feature.

    • Line end x-coordinateAn attribute will be added to store the x-coordinate of the end point of each line feature.

    • Line end y-coordinateAn attribute will be added to store the y-coordinate of the end point of each line feature.

    • Line end z-coordinateAn attribute will be added to store the z-coordinate of the end point of each line feature.

    • Line end m-valueAn attribute will be added to store the m-value of the end point of each line feature.

    • Number of partsAn attribute will be added to store the number of parts comprising each feature.

    • Number of verticesAn attribute will be added to store the number of points or vertices comprising each feature.

    • Perimeter lengthAn attribute will be added to store the length of the perimeter or border of each polygon feature.

    • Perimeter length (geodesic)An attribute will be added to store the shape-preserving geodesic length of the perimeter or border of each polygon feature.

    • Point x-coordinateAn attribute will be added to store the x-coordinate of each point feature.

    • Point y-coordinateAn attribute will be added to store the y-coordinate of each point feature.

    • Point z-coordinateAn attribute will be added to store the z-coordinate of each point feature.

    • Point m-valueAn attribute will be added to store the m-value of each point feature.

    • Point x- and y-coordinate notationAn attribute will be added to store the x- and y-coordinate of each point feature formatted as a specified coordinate notation.

Value Table

表达式

(可选)

用于限制参与属性规则的输入要素的 SQL 表达式。

SQL Expression

长度单位

(可选)

指定将用于计算长度的单位。

  • 千米长度单位将为千米。

  • 长度单位将为米。

  • 法定英里长度单位将为法定英里。

  • 国际海里长度单位将为国际海里。

  • 国际码长度单位将为国际码。

  • 国际英尺长度单位将为国际英尺。

  • 美国测量英里长度单位将为美国测量英里。

  • 美国测量海里长度单位将为美国测量海里。

  • 美国测量码长度单位将为美国测量码。

  • 美国测量英尺长度单位将为美国测量英尺。

String

面积单位

(可选)

指定将用于计算面积的单位。

  • 平方千米面积单位将为平方千米。

  • 公顷面积单位将为公顷。

  • 平方米面积单位将为平方米。

  • 法定平方英里面积单位将为法定平方英里。

  • 国际平方海里面积单位将为国际平方海里。

  • 国际英亩面积单位将为国际英亩。

  • 国际平方码面积单位将为国际平方码。

  • 国际平方英尺面积单位将为国际平方英尺。

  • 美国测量平方英里面积单位将为美国测量平方英里。

  • 美国测量平方海里面积单位将为美国测量平方海里。

  • 美国测量英亩面积单位将为美国测量英亩。

  • 美国测量平方码面积单位将为美国测量平方码。

  • 美国测量平方英尺面积单位将为美国测量平方英尺。

String

坐标格式

(可选)

将在计算坐标、长度和面积时使用的坐标系。 默认使用输入要素的坐标系。

  • 与输入相同坐标格式将为十进制度。

  • 十进制度坐标格式将为结尾带有主方向分量的度分秒 (DDD° MM' SSS.ss" <N|S|E|W>)。

  • 度分秒 (DDD° MM' SSS.ss" <N|S|E|W>)坐标格式将为开头带有主方向分量的度分秒 (&lt;N|S|E|W> DDD° MM' SSS.ss")。

  • 度分秒 (<N|S|E|W> DDD° MM' SSS.ss")坐标格式将为开头带有正或负方向分量的度分秒 (&lt;+|-> DDD° MM' SSS.ss")。

  • 度分秒 (<+|-> DDD° MM' SSS.ss")坐标格式将为开头带有正或负方向分量的打包为单个值的度分秒 (&lt;+|-> DDD.MMSSSss)。

  • 度分秒 (<+|-> DDD.MMSSSss)坐标格式将为结尾带有主方向分量的度十进制分 (DDD° MM.mmm' <N|S|E|W>)。

  • 度十进制分 (DDD° MM.mmm' <N|S|E|W>)坐标格式将为开头带有主方向分量的度十进制分 (<N|S|E|W> DDD° MM.mmm')。

  • 度十进制分 (<N|S|E|W> DDD° MM.mmm')坐标格式将为开头带有正或负方向分量的度十进制分 (<+|-> DDD° MM.mmm')。

  • 度十进制分 (<+|-> DDD° MM.mmm')坐标格式将为全球区域参考系统。 全球区域参考系统以纬度和经度为基础,将世界分为并细分为像元。

String

派生输出

标注 说明 数据类型

输出规则 CSV

将具有属性规则的 .csv 文件。

File

环境

此工具不使用任何地理处理环境。

许可信息

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