StreamOrderCalculator
这种递归算法处理矢量河流网络的斯特拉勒流顺序值。该算法要求矢量网络是拓扑正确的成功过程。网络必须是中心内衬网络,其中每个弧(有时被称为边缘)必须在它们的节点(有时被称为一个交界处)接合。没有左右岸或湖边沿岸应该存在。
输入端口
该变压器只需要线性特征和每组一个目的节点。
输入线特征必须是在拓扑上联接的网络与仅线两端连接特征。也就是说,所有的特性必须在路口进行分割。
输出端口
连接到目的节点的所有河流流是通过输出网络端口与所述斯特拉勒订单属性和/或霍顿订单属性中指定的斯特拉勒顺序和/或霍顿值分配给该属性(一个或多个)。
未连接到目的节点的所有河流流是通过输出没用过港口。
如果任何周期存在,流顺序,不计算和所有线路通过输出没用过港口。在其中循环发生的所有节点都通过输出周期港口。
所有的非线性特性和额外的目的地节点是通过输出无效港口。
参数
变压器
默认行为是使用整套的输入功能为一体的集团。此选项允许您选择定义哪些群体表单属性。每组具有所有这些属性的值相同的特征将被处理为一个独立的基团。
Note:如何并行处理与FME作品:看About Parallel Processing了解详细信息。
该参数确定变压器是否应该执行跨并行进程的工作。如果启用,这个过程将启动由指定的每个组通过...分组参数。
并行处理水平
例如,一个四核机,最小的并行将导致两个同时FME过程。一个8芯机上极端并行将导致16个同步过程。
您可以使用此功能试验,并查看Windows任务管理器和工作台登录窗口中的信息。
Yes:该变压器将处理输入组秩序。上的变化值通过...分组在输入流中的参数将触发当前累积组批处理。这将提高整体速度,如果组大/复杂的,但可能导致意外的行为,如果输入组没有真正有序。
No:这是默认的行为。一旦所有的输入是当前处理将只发生在该变压器。
参数
您可以选择固定流的方向通过该参数设置以适应下游方向到目的节点Yes。
您可以选择以检测设置周期检测周期至Yes。这是有用的,以确保在网络中之前固定流动方向或计算流顺序中不存在周期。
如果任何周期存在,流顺序,不计算和所有线路通过输出没用过港口。在其中循环发生的所有节点都通过输出周期港口。
TheStrahlerorder of the streams is calculated as follows:
- When two or more streams with the same Strahler orders join, the outflow streams are assigned this Strahler order plus 1.
- When two or more streams with different Strahler orders join, the outflow streams are assigned the maximum Strahler order.
Strahler order is output to an attribute specified byStrahler Order Attribute。
IfStream Order Typeis set toHorton, then Strahler order is calculated internally before Horton order can be computed.Horton ordering is based on the idea of a main stream.It starts with finding out the main stream that flows to the sink node;the Horton order of the arcs in this main stream will be the maximum Strahler order of these arcs.This process continues for each of the remaining tributaries until all streams have been assigned a Horton order, which is output to an attribute specified byHorton Order Attribute。
Users can specify the rules by which main streams are determined.At each junction in the network, the main stream of the incoming streams is selected based on the following rules:
- IfHorton Class Attributeis specified, always match the value of this attribute of the incoming streams to the main stream determined previously.If there is only one stream that matches, it is part of the current main stream.
- Otherwise, pick the stream with the highest value based the following formula:
priorityValue = (Horton Priority Weight) * (Horton Priority Attributevalue) + (Horton Angle Weight) * (angle deviation between this stream and the previous main stream) + (Horton Length Weight) * (ratio of longest length to a source node)
The angle between this stream and the previous stream is normalized to a value between 0 and 1.The value is 1 if the incoming stream is 0 degrees (straight) away from the previous main stream.If the stream is 180 degrees (exact opposite direction) away from the previous main stream, then the value is 0.If the angle between the streams is 45 or 90 or 135 degrees, the value is computed as 0.75, 0.5 and 0.25 respectively.
The ratio of the longest length to a source node for a stream is calculated as follows:
ratio = (longest length of this stream to a source node) / (sum of all longest lengths of the incoming arcs to a source node)
If none of theHorton Priority Weight,Horton Angle WeightandHorton Length Weightare specified, then by default, a main stream is determined by the longest branch.All these weights must be real values greater than or equal to zero.
例
下面的图片展示了河网,其中湖泊,河岸两边已经被数字捕获一个无效的网络和有效的,拓扑正确的,中心林立的河流该算法可以处理网络的地图表示。
如果网络是“断”(弧不连接),那么输出将是不正确。该算法将视断开流域作为一个独立的河流系统,因此试图计算斯特拉勒顺序值之前检查河流网络的连接是非常重要的。
编辑变压器参数
使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击适用的参数旁边。欲了解更多信息,请参阅变压器参数菜单选项。
变压器分类
相关变形金刚
FME许可级别
FME专业版及以上
搜索FME知识中心
搜索样品和有关该变压器的FME知识中心。
Tags关键词:斯特拉勒霍顿