StreamorderCalculator.
Computes the Strahler order and/or Horton order of streams in a river network.
此递归算法处理矢量河网络的Strahler流订单值。该算法要求向量网络拓扑正确地正确地进行拓扑处理。网络必须是中心衬里网络,其中必须在其节点(有时称为结)的节点(有时称为边缘)的每个弧(有时称为边缘)。没有左右银行或湖边海岸应该出现。
输入端口
This transformer only takes linear features and one destination node per group.
输入线功能必须是拓扑编码的网络,仅具有在线连接的功能。也就是说,所有功能必须在连接点处分开。
输出端口
连接到目标节点的所有河流都会通过Networkport with the Strahler order and/or Horton value assigned to the attribute(s) specified in the Strahler Order Attribute and/or Horton Order Attribute.
所有未连接到目标节点的River Stream都会通过Unusedport.
If any cycle exists, stream order is not computed and all lines are output through theUnusedport. All nodes in which the cycles occur are output through theCycleport.
所有非线性功能和额外的目的地节点都会通过Invalidport.
参数
变压器
这default behavior is to use the entire set of input features as the group. This option allows you to select attributes that define which groups to form. Each set of features that have the same value for all of these attributes will be processed as an independent group.
Note:How parallel processing works with FME: seeAbout Parallel Processing有关详细信息。
此参数确定变压器是否应跨行进程执行工作。如果启用了,将为每个组的组启动一个过程通过...分组parameter.
并行处理水平
For example, on a quad-core machine, minimal parallelism will result in two simultaneous FME processes. Extreme parallelism on an 8-core machine would result in 16 simultaneous processes.
You can experiment with this feature and view the information in the Windows Task Manager and the Workbench Log window.
No: This is the default behavior. Processing will only occur in this transformer once all input is present.
By Group: This transformer will process input groups in order. Changes on the value of the通过...分组parameter on the input stream will trigger batch processing on the currently accumulating group. This will improve overall speed if groups are large/complex, but could cause undesired behavior if input groups are not truly ordered.
参数
您可以选择修复流的方向,以通过将此参数设置为来拟合到目标节点的下游方向Yes。
您可以选择通过设置检测周期Detect CyclestoYes。This is useful to make sure that no cycles exist in the network prior to fixing flow direction or computing stream order.
If any cycle exists, stream order is not computed and all lines are output through theUnusedport. All nodes in which the cycles occur are output through theCycleport.
这Strahler流的顺序计算如下:
- 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订单输出到指定的属性Strahler订单属性。
If流订单类型设定为霍顿那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 by霍顿Order Attribute。
用户可以指定确定主流的规则。在网络中的每个结时,根据以下规则选择传入流的主流:
- If霍顿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 =(霍顿Priority Weight) * (霍顿Priority Attribute价值)+(霍顿Angle Weight) * (angle deviation between this stream and the previous main stream) + (霍顿长度重量) * (ratio of longest length to a source node)
这条小溪之间的角度和前面的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.
这ratio of the longest length to a source node for a stream is calculated as follows:
比率=(该流的最长长度到源节点)/(传入弧的所有最长长度的总和到源节点)
如果没有霍顿Priority Weight那霍顿Angle Weightand霍顿长度重量are 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.
例子
下面的图像演示了河流网络的地图表示,这是一个无效的网络,其中湖泊和河岸侧面都经过数字捕获和有效,拓扑上正确的,算法可以处理的河流网络。
如果网络是“破坏”(弧线未连接),则输出将不正确。该算法将将断开连接的集水区视为单独的河流系统,因此在尝试计算Strahler订单值之前检查河网络的连接非常重要。
Editing Transformer Parameters
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变压器范围Menu Options。
变压器Categories
Related Transformers
FME许可级别
FME专业版及以上
搜索FME知识中心
搜索有关此变压器的样本和信息FME知识中心。
标签Keywords: Strahler Horton