AttributeFilter
路由功能,以根据一个属性的值不同的输出端口。该组可能的属性值可以手动输入,或从在属性对话框的输入源中提取。
典型用途
- 基于用于进一步各个处理属性值分离特征
- Extracting one or more groups of features from a dataset based on attribute values
- 从数据集相匹配的特定值选择功能和丢弃其余
- Grooming a dataset by keeping select features and discarding features with non-matching, empty, missing, and/or null values
它是如何工作的?
一旦连接,AttributeFilter让你选择一个属性通过过滤传入的功能。默认情况下,空的,缺失,空,并且提供未滤波输出,并且可以通过手动或者输入它们或从现有数据集导入值指定到滤波器额外值。
所有功能都通过变压器传递,通过适当的输出端口退出。
在此开始时的工作区的,包含道路数据CAD文件被读取,并且基于划分成单独的流进行进一步的处理特征autocad_layerattribute value.
变压器已经被连接到来自读取器的呼入功能,因此该数据集的属性可供选择。该autocad_layer属性被选择。
所需的值被输入时,每一个单独的行。可用的值也可以通过使用导入按钮扫描数据集的内容决定。
使用注意事项
- 理想情况下,你会想,以保持过滤列表相当小;否则,你可以用一个很长的属性列表结束。如果FME确定名单可能过大,它会返回一个警告。
- 如果特征过滤可以用一组来完成或值的范围,可以考虑使用TestFilterorAttributeRangeFilter。
- 如果你写,分层或数据集的唯一目的过滤功能,可以考虑使用扇出代替。
组态
输入Ports
该变压器接受任何功能。
输出端口
<空> | 如果特征的属性值是一个空字符串,特征是通过<空>端口输出。 |
<缺少> | 如果功能不具有指定的属性,它是通过<缺少>端口输出。 |
If the feature’s attribute has a value of null, the feature is output via the |
|
<未过滤> | If the feature’s attribute has a value not in the list, the feature is output via the |
对于在可能的属性值列表中输入的每个值,输出端口与相同的名称值创建。
参数
属性筛选通过 | When you connect the transformer to the feature type, the list of attributes will appear in a pull-down list. Choose the attribute from the list. |
如果你知道你想过滤的值,进入他们单独在这里,每行一个。每个条目将创建一个输出端口。
您也可以从源数据集使用Import按钮导入值。
对话框选项
行重新排序 |
Enabled once you have clicked on a row in the Possible Attribute Values list. Choices include:
注意:您可能无法删除的空默认值,丢失,空,和过滤。 |
进口 |
Import按钮启动,这将填充可能属性值列表与一组值的向导从数据集读取。选择的数据集,所述特征类型(一个或多个)从读取,并且该属性将被扫描为可能的值。在完成向导,现有的值被添加到列表中。 |
编辑变压器参数
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变压器参数菜单选项。
Defining Values
有几种方法来定义一个值供我使用n a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.
Using the Text Editor
文本编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和常量,其中该结果被直接使用的参数中的文本字符串(包括正则表达式)。
使用算术编辑器
算术编辑器提供了一个方便的方法来构造从各种数据源,如属性,参数和特征函数,其中结果被直接使用的参数内的数学表达式。
条件值
根据一个或多个测试条件,要么通过或失败的设定值。
Parameter Condition Definition Dialog
Content
表达式和字符串可以包括多个功能,字符,参数,和更多 - 编辑是否直接在参数输入或构造使用一个。
参考
Processing Behavior |
|
特点控股 |
No |
依赖 | 没有 |
FME许可级别 | FME Base Edition and above |
别名 | |
历史 | |
分类 |
FME Community
该FME社区是为亚搏国际在线官网演示,入门指南,文章,FAQ,以及更多的地方。解答您的问题,向其他用户学习,并建议,投票,并在新的功能注释。
搜索all results about the AttributeFilter在FME社区。亚搏国际在线官网
实例可以包含开放政府许可协议进行许可信息 - 温哥华