Leftrightspatialcalculator.
计算相对于基本输入特征的候选输入特征的相对位置。
The geometry of a根据feature is restricted to lines.
See the example below. The根据lines are considered to be oriented from the start point to the end point (digitization sense). A候选人feature is:
- 位于左侧根据如果俯视的话根据line in the direction of the orientation (from start to finish);
- 如果是候选人是在右边根据特征;
- UNDEFINED if the根据和候选人特征相交,或者如果是根据feature has a single point.
Output Ports
在被派出之前Outputport, each候选人feature will have a list of its relative positions to each of the根据features attached to it. Each element of the list has two pieces of information:
- 英航“base_id”标识se
- 计算的相对“位置”
根据使用后删除功能。
任何根据feature that is not a line is output through this port. All null and aggregate候选人功能通过此端口输出。有效的部分将通过该部分输出Output端口,无效部分将输出<被拒绝>港口。
Parameters
Group Processing
如果您按属性选择组,考生只是比较反对根据sthat have the same values in these attributes.
Process At End (Blocking): This is the default behavior. Processing will only occur in this transformer once all input is present.
Process When Group Changes (Advanced): This transformer will process input groups in order. Changes of the value of the Group By parameter on the input stream will trigger processing on the currently accumulating group. This may improve overall speed (particularly with multiple, equally-sized groups), but could cause undesired behavior if input groups are not truly ordered.
使用两种典型的原因Process When Group Changes (Advanced). The first is incoming data that is intended to be processed in groups (and is already so ordered). In this case, the structure dictates Group By usage - not performance considerations.
The second possible reason is potential performance gains.
最有可能在已经对数据进行排序的(或使用A读取SQL ORDER BY声明)由于FME需要更少的工作。如果数据需求排序,则可以在工作区中排序(尽管添加的处理开销可能会否定任何增益)。
Sorting becomes more difficult according to the number of data streams. Multiple streams of data could be almost impossible to sort into the correct order, since all features matching a通过...分组value need to arrive before any features (of any feature type or dataset) belonging to the next group. In this case, using通过...分组和Process At End (Blocking)可能是等同和更简单的方法。
Note: ">不te:Multiple feature types and features from multiple datasets will not generally naturally occur in the correct order.
As with many scenarios, testing different approaches in your workspace with your data is the only definitive way to identify performance gains.
一般的
如果选择是(默认),则该算法将仅使用传递的核心考生instead of the whole geometry.
If you choose是的, the algorithm will compute only at the point on the根据line that is closest to the first or "center of mass" point.
Note: ">不te:对于某些情况而言,算法中的数学可能产生与人眼会主观预期的相反的结果。
If you choose不, the algorithm will use a "gravity" or "weighted" based method such that all segments are used; segments from the base line that are closer to the candidate will contribute a higher weight than the segments that are farther away. The weights are added for each of the base's segments and will produce left or right depending on the group consensus. This will usually produce a subjectively more visually appealing result.
Note: ">不te:可能存在一些边缘案例将返回不正确的结果。
定义是否仅提供单个基础,或者是否将提供多个基础。如果您首先选择基地,所有根据功能将首先进入变压器,在任何内容之前候选人features.
Choose the根据attribute whose value will be used to identify it in the list of relative positions attached to each output候选人.
指定将添加到所有输出上的列表属性的名称候选人features, and that will contain the relative positions.
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter 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.
设置值 - 无论是否直接在参数中输入或使用其中一个编辑器和包含字符串的表达式都是构造的,都会评估这些函数的字符串和表达式。因此,这些函数的名称(以@ <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. | |
这些主要是特定于特征的值。 | |
可以使用FME和工作区的参数。 | |
创建和修改用户参数 | 创建自己的可编辑参数。 |
对话框选项 - 表格
具有桌面参数的变压器具有填充和操作值的其他工具。
Row Reordering |
Enabled once you have clicked on a row item. Choices include:
|
剪裁,复制和粘贴 |
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. |
重置/刷新 |
一般的ly resets the table to its initial state, and may provide additional options to remove invalid entries. Behavior varies between transformers. |
不te:不t 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社亚搏国际在线官网区.
Keywords: relative position