ListSearcher
Searches a list to find a value and returns the index of the value in the list.
Output Ports
An element in the list matched. The output feature will return the index of the found element in the index attribute specified.
If the element is not found in the input feature, the feature will be output via this port and no index attribute will be applied.
Parameters
The name of the list to search. The list name should contain a pair of braces {}.
This parameter determines how the list will be searched.
参数选择 | Description |
---|---|
First Exact Match |
Searches for an exact match. |
首先正则表达式匹配 |
Uses a regular expression to search for a first matching entry in the list. Advanced Regular Expressions (AREs) are supported. Advanced Regular Expressions (AREs) are supported. For a complete description of AREs, see Syntax of Perl-Compatible Regular Expressions athttp://perldoc.perl.org/perlre.html#Regular-Expressions. In brief, an ARE is one or more branches, separated by `|', matching anything that matches any of the branches. |
首先不匹配 |
返回列表中的第一个非匹配项的索引。 |
首先小于, |
搜索列表中的一个满足条件的第一个元素。使用的数值比较,如果两者的列表元素和搜索值可以被转换为浮点数;否则,字符串比较使用 |
字符串或正则表达式在列表中搜索。
If theIndex Attributeis specified and the search string is found, an attribute with the specified name will be added to the output feature containing the index of the found element.
如果选中,所发现的元素的内容将被复制到输出要素的主要属性(一个或多个)。这样可以节省添加ListIndexerafter the searcher to demote the list element.
Note that any list element attributes that start withfme_不会被复制(例如,fme_type),除非您指定Copied Attribute Prefix.
复制到输出的功能,应该被添加到任何属性(一个或多个)的前缀。
Advanced
This parameter controls the order in which features exit a transformer.
When a transformer has more than one output port, features usually exit one port at a time. At times, it may be useful to keep the order that features arrived in, switching from port to port as necessary. This allows feature order to be preserved, though at a potential cost in processing efficiency.
Select a method for feature ordering.
Per Output Port (Default) | 仅因为它们发生的组中的离开一个给定的输出端口的功能内保留的特征的输入顺序。 All features exiting an output port retain their ordering relative to each other (within the group), but not relative to features exiting other output ports. 这个选项一般是最有效的,其中的特征大块将退出输出端口一起(趁着bulk mode). As features exiting different output ports may not be strictly output in the order they arrived, output ordering may be unpredictable. |
Across Output Ports | 严格保护功能的输入顺序,而不管他们退出其输出端口。特点将在他们抵达相同的顺序单独输出,从端口切换到端口是必要的。 This option is generally less efficient as the processing gains ofbulk modeare less likely to apply - however, feature order is predictable. |
Example
例如,如果该功能进入变压器:
somelist{0}.length= 7.3
somelist {0} .kind= ’paved’
somelist {1}。长度= 8.4
somelist{1}.kind= ’smooth’
somelist{1}.lanes= 2
somelist {2} . length= 1.1
somelist{2}.kind=“粗”
and thesomelist{}.kindlist attribute is searched for the value光滑,则索引属性将被设置为1。
Usage Notes
- 输出要素的顺序可以通过控制Advanced > Preserve Feature Order参数。
Additional Resources
Test regular expressions withRubular, a Ruby-based regular expression editor.
编辑变压器参数
使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击适用的参数旁边。欲了解更多信息,请参阅变压器帕拉meter Menu Options.
定义值
有几种方法来定义一个变压器使用的值。最简单的是简单地在一个值或字符串,其可包括各种类型,如属性引用,数学和字符串函数,和工作空间参数的函数类型。有许多的工具和快捷方式,可以帮助构建值,一般可从邻近值字段的下拉上下文菜单。
使用文本编辑器
The Text Editor provides a convenient way to construct text strings (including regular expressions) from various data sources, such as attributes, parameters, and constants, where the result is used directly inside a parameter.
Using the Arithmetic Editor
The Arithmetic Editor provides a convenient way to construct math expressions from various data sources, such as attributes, parameters, and feature functions, where the result is used directly inside a parameter.
Conditional Values
根据一个或多个测试条件,要么通过或失败的设定值。
内容
Expressions and strings can include a number of functions, characters, parameters, and more.
当设定值 - 无论是直接在参数输入或使用的编辑之一构造 - 字符串和表达式包含字符串,数学,日期/时间或FME特征函数将具有评价这些功能。因此,这些功能的名称(在形式@ <FUNCTION_NAME>) should not be used as literal string values.
These functions manipulate and format strings. | |
Special Characters |
A set of control characters is available in the Text Editor. |
数学函数在两种编辑器中可用。 | |
时间/日期函数 | Date and time functions are available in the Text Editor. |
These operators are available in the Arithmetic Editor. | |
These return primarily feature-specific values. | |
FME和工作区特有的参数可被使用。 | |
创建和修改用户参数 | 创建您自己的可编辑参数。 |
对话框选项 - 表
与表样式参数变压器具有用于填充和操作价值的附加工具。
Row Reordering |
Enabled once you have clicked on a row item. Choices include:
|
Cut, Copy, and Paste |
Enabled once you have clicked on a row item. Choices include:
Cut, copy, and paste may be used within a transformer, or between transformers. |
过滤 |
开始输入字符串,和所述矩阵将仅显示行匹配这些字符。搜索所有列。这不仅影响了变压器中的属性的显示 - 它不会改变其属性输出。 |
进口 |
进口populates the table with a set of new attributes read from a dataset. Specific application varies between transformers. |
重置/刷新 |
Generally resets the table to its initial state, and may provide additional options to remove invalid entries. Behavior varies between transformers. |
Note:Not all tools are available in all transformers.
FME社亚搏国际在线官网区
The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
搜索样品和有关该变压器的FME社亚搏国际在线官网区.