Skip to main content

生成空间连接属性规则 (数据管理工具)

汇总

根据从一个或多个要素类查询的字段值生成具有输入属性规则的 .csv 文件。

用法

  • 使用字段映射参数管理输出数据集中的字段及其内容。

    • 您可以向字段列表中添加和移除字段,重新排序字段列表,并重命名字段。

    • 输出字段的默认数据类型与它遇到的第一个输入字段(具有相同名称的字段)的数据类型相同。 可以将数据类型更改为其他有效的数据类型。

    • 使用操作确定如何将一个或多个输入字段的值合并到单个输出字段中。 可用的操作包括第一个最后一个串连求和平均值中位数众数最小值最大值标准差计数

    • 当使用串连操作时,可以指定分隔符,例如逗号或其他字符。 单击分隔符文本框的开始部分以添加分隔符。

    • 单个输入值不支持标准差选项。

    • 使用导出选项 将字段映射另存为 .fieldmap 文件。

    • 使用加载选项 加载 .fieldmap 文件。 文件中指定的要素图层或数据集必须与工具中使用的数据集相匹配。 否则,将重置字段映射参数。

    • 对于文本源字段,使用分割文本按钮 ,可以选择从输入值中提取到输出字段的字符。 要访问分割文本按钮,需将鼠标悬停在输入字段列表中的文本字段上,然后指定起始和结束字符位置。

    • 还可以在 Python 脚本中映射字段。

参数

标注 说明 数据类型

输入表

用于创建属性规则的要素类。

Feature Layer

输出文件夹

用于保存输出 .csv 文件的文件夹。 文件的名称将使用输入表参数值的名称。

Folder

连接类

连接要素的属性将与输入要素的属性相连接。

Feature Layer

字段映射

控制字段从连接类参数值到输入表参数值的传输或映射。

Field Mappings

表达式

(可选)

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

SQL Expression

搜索选项

(可选)

定义输入表连接类参数值中的要素之间的空间查询。 可以配置几何类型、空间运算符和空间距离来定义每个连接类和输入表之间的匹配。

值表列:

  • Join ClassThe name of the join class the spatial query will run on.

  • Input Geometry TypeThe portion of the input geometry that will be used to query the join class.

    • GeometryThe complete geometry of the input feature. This is default.

    • StartThe first vertex within a polyline feature. This option is only supported for polyline features.

    • EndThe last vertex within a polyline feature. This option is only supported for polyline features.

    • CentroidThe geometric center of the input feature.

  • Spatial OperatorThe spatial operation that will be used in the query.

    • IntersectsFeatures in the join class will be matched if they intersect with an input feature. This is default.

    • CrossesFeatures in the join class will be matched if they cross with an input feature.

    • ContainsFeatures in the join class will be matched if an input feature contains them. This is the opposite of the within option.

    • Envelope IntersectsFeatures in the join class will be matched if their bounding boxes (envelopes) intersect with the bounding box of an input feature.

    • OverlapsFeatures in the join class will be matched if they overlap with an input feature. The join class features are not completely contained by the input features.

    • TouchesFeatures in the join class will be matched if they have a boundary that touches an input feature. When the input and join features are polylines or polygons, the boundary of the join feature can only touch the boundary of the input feature and no part of the join feature can cross the boundary of the input feature.

    • WithinFeatures in the join class will be matched if an input feature is within them. This is the opposite of the contains option.

  • Spatial DistanceThe distance from the geometry that will be included in the query.

Value Table

派生输出

标注 说明 数据类型

输出规则 CSV 文件

输出 .csv 文件的文件夹位置和名称。

File

环境

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

许可信息

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