AreaAmalgamator
AtaMalgamator接受多边形几何形状 - 包括甜甜圈 - 作为输入,并产生连接输入功能的三角形,或者将输入功能连接到连接的棋片或汞合金中。在该过程结束时移除小孔。
The strategy for generalizing polygonal geometries is as follows:
- Redirect non-polygonal geometries onto theInvalidport.
- 溶解输入多边形几何形状以去除共享边界和重叠区域。
- Densify the dissolved polygonal geometries.
- Determine the convex hull of the densified polygonal geometries.
- Overlay the convex hull against the densified polygonal geometries to compute empty regions between the polygonal geometries.
- Triangulate the empty regions. Keep only triangles that are sufficiently short in length – those that satisfy the Maximum Triangle Length parameter.
- Dissolve the triangles to form connectors.
- For each connector, check to see if it is valid. It is valid if it shares a boundary with a dissolved polygonal geometry.
- 输出all features not touched by any connectors to theUntouchedport.
- Dissolve valid connectors with dissolved polygonal geometries to form amalgams.
- For each amalgam, remove small holes that do not satisfy the Minimum Hole Area parameter. Remaining (large) holes are output to theHolesport.
- 对于每个Amalgam,找到形成其连接器的一部分的所有三角形。将这些三角形输出到Trianglesport.
- 输出all amalgams to theAmalgamatedport.
- For attribute behavior, please see List Name and ID Attribute in the Parameters section.
输入端口
Polygonal geometries, including donuts. The polygonal geometries may overlap and share boundaries. However, each geometry should be valid (that is, not self-intersecting or non-planar).
输出Ports
Amalgams computed from input polygonal geometries.
输入多边形几何形状未被有效的三角形连接器触摸。
Holes in the amalgams whose areas exceed the Minimum Hole Area parameter.
Triangles that form the valid connectors joining input polygonal geometries.
非多边形输入。偶尔,如果满足意外情况,则会将一些无效的中间结果发布到此端口。
Input | 输出 |
---|---|
Triangles(red) |
|
Amalgamated(green) |
|
Holes(black) |
参数
变压器
通过指定一个或多个组的属性input polygonal features will be partitioned into groups and the amalgamation process will be executed separately on each group. Within each group, all features will have the same values for the selected Group By attributes.
If no Group By attributes are selected, a single group will be formed containing all input polygonal features. By default, no Group By attributes are selected.
Note:How parallel processing works with FME: seeAbout Parallel Processing有关详细信息。
此参数确定变压器是否应跨行进程执行工作。如果启用了,将为每个组的组启动一个过程Group Byparameter.
并行处理水平
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 theGroup Byparameter 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.
参数
This parameter controls the mode of amalgamation. The AreaAmalgamator is conceptually a binary operator that causes two nearby geometrical details to connect together. However, two geometrical details may be on the same geometry. Imagine two peninsulas protruding from the same coast line, or two different geometries, such as two neighboring islands. Therefore, a number of options are provided here to accommodate the two conceptual models:
- Self Amalgamation: This mode amalgamates a polygonal geometry against itself. It would handle the two peninsulas case, but not the two neighboring islands case.
- Binary Amalgamation(默认):此模式合并不同的多边形几何形状。它将处理两个邻近的岛屿案例,但不是两个半岛案例。
- 自我,二元融合: This mode combines theSelf Amalgamationand theBinary Amalgamation。它将处理两个半岛案例和两个邻近岛屿案例。
Input | 输出: Amalgamated |
---|---|
Self Amalgamation |
|
Binary Amalgamation |
|
自我,二元融合 |
This parameter controls whether input polygonal features are dissolved up front. The default value is Yes.
- Yes:此值溶解输入多边形功能。BoyAmalgamator是假设输入功能不重叠的假设。此值强制执行该假设。溶解输入前面还提供可能不重叠的输入多边形特征,但由于精度有限,其共享边界在致密化步骤后变得重叠。由于精度有限的重叠可以降低大区扩张器的性能。
- No: This value is meant for advanced users who want finer control of the AreaAmalgamator. Some users would rather not dissolve the input to improve performance because in some cases, not dissolving the input will not cause undesirable side effects.
Overlapping Input | Dissolve Input: Yes 融合模式:二进制 |
溶解输入:没有 融合模式:二进制 |
---|---|---|
解释 | The input dissolves into one polygon, thus the Binary mode causes the one polygon not to amalgamate. |
The input is not dissolved, thus the Binary mode causes the two input features to amalgamate, but because overlapping features were not dissolved, a hole results in the middle of the amalgam. |
Overlapping Input | Dissolve Input: Yes 合并模式:自我 |
溶解输入:没有 合并模式:自我 |
---|---|---|
解释 | The input dissolves into one polygon, thus the Self mode causes the one polygon to amalgamate. |
The input is not dissolved, thus the Self mode causes the two input features not to amalgamate. |
此参数控制形成连接器的三角形的宽度。三角形的宽度是其基础的宽度,其入射在输入多边形几何形状的边界上(参见下图)。它的价值越大,三角形的宽更宽。
In terms of triangle count, decreasing this value generally increases (and will not decrease) the number of triangles generated. In terms of performance, having this value set too low could cause significant slowdowns. In terms of the appearance of the triangle connectors, having this value set too high could result in coarse looking connectors that appear skewed in shape.
Note:Tip: set the value of this parameter as high as possible, given that the amalgamated output still looks good to the eye.
More rigorously, after the input polygonal geometries are dissolved, extra vertices are added through a densification process. The densification interval controls the widths of triangles created. This parameter specifies the length of the densification interval.
This parameter controls the lengths of triangles that form the connectors. The length of the triangle is defined by the length of its longest side (see figure below). This value should not be less than the最大三角形宽度。The larger its value, the farther apart two input polygons can be and still be connected together by triangles in the formation of amalgams.
在三角形计数方面,降低该值通常会降低(并且不会增加)生成的三角形的数量。该值的变化预计不会对性能产生重大影响。就三角形连接器的外观而言,该值设置得太高可能导致输入多边形作为单个Amalgam输出。
这个参数控制孔应消除的inated from the amalgams. The larger its value, the larger the remaining holes will be. In terms of hole count, decreasing this value generally increases (and will not decrease) the number of holes remaining in the amalgams.
此参数指定Amalgams的列表属性的名称。对于每个Amalgam,此列表将包含每个输入功能的条目,其多边形几何形状与Amalgam共享边界。输入功能中的所有属性都记录在列表条目中,除了以前缀为前缀的特征级别属性fme_。
Note:List attributesare not accessible from the output schema in Workbench unless they are first processed using a transformer that operates on them, such asListExploderorListConcatenator。All list attribute transformers are displayed in the Contents pane of the Transformer Help underLists。或者,AttributeExposer可以使用。
This parameter specifies the name of a unique identifier for the amalgams. If specified, each amalgam will receive an ID value that is unique across groups. All triangles and holes contained in an amalgam will receive the same ID as that amalgam.
Usage Notes
溶解输入是必须去除共享边界和重叠区域的必要条件,其中距离大区扩张器不能正常运行。但是,溶解输入有一些副作用:
- If multiple input features dissolve into a single feature, then only one set of feature attributes are kept on the dissolved feature.
- If two input geometries share a boundary – for example, two peninsulas glued together – the user might expect triangle connectors to form between the two geometries when theBinary Amalgamationmode is selected. However, such geometries will first be dissolved, making it much more likely thatBinary Amalgamationwill not cause triangle connectors to form between the peninsulas. To overcome this issue, please select the自我,二元融合模式。
If the最大三角长度specified is less than最大三角形宽度, the results may be unpredictable.
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
Search FME Knowledge Center
Search for samples and information about this transformer on theFME知识中心。
标签Keywords: Amalgamator