Snapper
Brings lines, segments, end points or vertex points of features together if they are within a certain distance of each other and (optionally) if they have one or more attributes in common.
The difference between the锚定纳普佩鲷鱼是consid锚特性ered to be accurate and consequently do not move.
Output Ports
Features whose geometry is changed by the transformer.
Features that leave the transformer without being changed.
Parameters
Transformer
If通过...分组选择属性,功能仅按属性将其捕获到具有相同值的其他功能。
笔记:平行处理如何与FME一起使用:见About Parallel Processingfor detailed information.
This parameter determines whether or not the transformer should perform the work across parallel processes. If it is enabled, a process will be launched for each group specified by the通过...分组parameter.
Parallel Processing Levels
Parameter | Number of Processes |
---|---|
不Parallelism | 1 |
Minimal | cores处理器或CPU是执行数学计算的计算机的物理部分。它是计算机系统中最重要的部分。传统的处理器在处理器上只有一个核心,这意味着在任何给定时间,只执行一组计算。如果处理器是双核,这意味着单个芯片包含两个处理器的硬件,现在称为核心,以将它们与单个芯片相同,并排沿同时运行。(来源:http://www.ehow.com/facts_5730257_computer-core-processors_.html)/ 2 |
中等 | exact number of cores |
Aggressive | cores x 1.5 |
极端 | cores x 2 |
例如,在四核机器上,最小的并行性将导致两个同时的FME进程。8核机上的极端并行性将导致16个同时流程。
您可以尝试此功能,并在Windows任务管理器和Workbench日志窗口中查看信息。
Yes: This transformer will process input groups in order. Changes on the value of the通过...分组输入流上的参数将触发当前累计组上的批处理。如果组很大/复杂,则会提高整体速度,但如果输入组未真正订购,则可能导致不期望的行为。
不: This is the default behavior. Processing will only occur in this transformer once all input is present.
Parameters
When this parameter is set toEnd Point Snapping, the transformer:
- Snaps lines together if the distance between their end points are within the specified tolerance.
- Snaps point features to points or lines if their distances are within the specified tolerance.
- Area features will not be altered by the transformer when run in this mode.
- When two features are snapped together, the feature that entered the factory most recently is the one that is modified
When this parameter is set to顶点捕捉, the transformer does the following:
- Snaps vertices of lines together if their distances are within the specified tolerance.
- Snaps point features to points or lines if their distances are within the specified tolerance.
- Area features are altered by this operation as its vertices are snapped.
- When two features are snapped together, the feature that entered the factory most recently is the one that is modified.
When this parameter is set toSegment Snapping, the transformer does the following:
- Snaps vertices of lines together if their distances are within the specified tolerance.
- 如果它们的距离在沿着段的任何点处的指定容差内,则将段的顶点捕捉到其他段。新顶点将被引入新的捕获顶点已移动到的段。
- 段捕捉可能导致重复点,其中段已退化为一个点。
- Segments which cross other segments will have new vertices introduced at the point of intersection, but the segments will remain unbroken.
- 由于其顶点和段捕获,该操作改变了区域特征。
- If a segment and a point are both within tolerance, the transformer will snap to a vertex in preference to a segment, even when the segment is closer.
Snapping Tolerance指定在特征之间发生捕捉的距离。
This parameter applies only when the end point of a feature is being snapped. It controls how lines are modified when they are snapped.
- 绝不: the endpoint of a line is moved when it is snapped and no additional vertex is added.
- ALWAYS: the original end point (start point) of the line becomes the second from the end (start) and a new vertex is added to complete the snap.
- forward_only: a new vertex is added only when doing so creates an angle greater than 90 degrees with the original line segment. In this case, if adding the vertex would cause a less than 90-degree angle, the old end point is still moved.
Any features entering the transformer whose length is less than or equal to the tolerance will be treated specially: they will be output asUntouched, and other features (but not other short features) will not be able to snap to them. If the option is not selected, features like this will collapse to a single point and will be dropped.
Usage Notes
A short cleanup step is performed after snapping. This step will remove duplicate points, and may create aggregates to preserve overlapping, directed segments.
Any feature that undergoes dimensional collapse as a result of being snapped will be logged as "degenerate" and dropped. Dimensional collapse refers to a line or area that becomes a point, or an area that becomes a line.
Related Transformers
- 捕捉器似乎捕捉到发现的第一个合适的候选人,然后忽略其他可能的候选者。如果这不是您要找的,那么CoordinAterounder.可能是有用的。
- 在尝试更复杂的操作之前,可以使用捕捉程序清除数据集,例如构建多边形。通常在这种情况下使用的其他变压器是扩展器和Intersector.
- The锚定纳普佩transformer provides slightly different functionality by identifying a set of features which will not be moved and will be snapped to by another set of features.
Example
The example below illustrates end points of two line features snapping together.
The example below illustrates an endpoint and a vertex of a line snapping together.
The example below illustrates vertices of a segment snapping to another segment.
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options.
变压器类别
FME Licensing Level
FME Base edition and above
Search FME Knowledge Center
搜索有关此变压器的样本和信息FME Knowledge Center.