PointOnAreaOverlayer
在执行多边形叠加一个点。点接收包含的区域属性,以及区域接收包含点属性(空间连接)。
典型用途
- 发现哪些领域该点内下跌
- 哪些和多少点都包含区域内查找
它是如何工作的?
该PointOnAreaOverlayer比较点和多边形。每个点接收它被包含在区域(S)的属性,并且每个包含区域接收它包含每个点的属性。
区域特征之间的交叉点不计算。FME考虑边界的区域上的点为“”,所以如果一个点正好落在两个多边形,将被视为之间的界限“在”两个领域。
聚集体可以处理之前解聚集或拒绝。
在这个例子中,我们有食品摊贩的点数据集和一组表示街区多边形。
为了找到一个供应商是在附近,我们的食品供应商的指向点输入端口,社区连接区输入端口。
在参数对话框,默认设置将提供正确的结果。注意,属性>累加模式被设定为呼入,这将从含附近多边形的每个点添加属性。
纵观食品供应商分输出,我们可以看到,含有邻属性已被添加。
纵观区域的输出,该_overlaps属性告诉我们,食品摊贩在邻近地区的存在多少。
使用相同的食品供应商分和附近的多边形与前面的例子中,我们也可以建立一个包含所有食品供应商对于给定的邻域的列表属性。
在参数对话框,使生成的输出“区”名单,给列表中的名称,然后选择要包含的属性。
检查输出,我们可以看到,锦绣附近包含7个食品摊贩,和这些厂商的名称和说明都包含在一个列表属性。
使用注意事项
- 如果你有很多的功能,过程中,您可以通过使用也将提高覆盖性能限幅器变压器。克利皮尔还提供对正好落在线路上的点不同的选择。查看快船例如,从FME社区亚搏国际在线官网关于如何使用使用较少的内存信息快船队先参数。
- 如果你有很多点的特别功能,您可以通过使用地区第一个参数减少PointOnAreaOverlayer的内存使用情况。
- 请注意,这里点几何有望作为输入,点云的几何形状不被支持。
- 该PointOnAreaOverlayer不具有位置公差的选择。
选择空间变换器
许多变压器可以评估空间关系,并执行空间连接 - 分析拓扑结构,合并属性,有时修改几何。一般情况下,选择一个最具体到你需要完成将提供最佳的性能结果的任务。如果有不止一种方法来做到这一点(这是经常的情况),花费在性能测试替代方法可能是值得的。
要正确分析空间关系,所有的功能应该是相同的坐标系统相同。该Reprojector可以是用于在工作空间内重新投影的特征是有用的。
Transformer |
Can Merge Attributes |
Alters Geometry |
Counts Related Features |
Creates List |
Supported Types* |
Recommended For |
---|---|---|---|---|---|---|
SpatialFilter | 是 | No | No | No |
|
|
SpatialRelator | 是 | No | 是 | 是 |
|
|
区域OnAreaOverlayer | 是 | 是 | 是 | 是 |
|
|
LineOnAreaOverlayer | 是 | 是 | 是 | 是 |
|
|
LineOnLineOverlayer | 是 | 是 | 是 | 是 |
|
|
PointOnAreaOverlayer | 是 | No | 是 | 是 |
|
|
点OnLineOverlayer | 是 | 是 | 是 | 是 |
|
|
点OnPointOverlayer | 是 | No | 是 | 是 |
|
|
Intersector | 是 | 是 | 是 | 是 |
|
|
限幅器 | 是 | 是 | No | No |
|
|
NeighborFinder | 是 | In some cases | No | 是 |
|
|
TopologyBuilder | 是 | 是 | No | 是 |
|
|
* NOTE:曲线包括直线,圆弧和路径。区域包括多边形,甜甜圈,和椭圆。
空间分析运算,部分icularly when a large number of features are involved.If you would like to tune the performance of your workspace, this is a good place to start.
When there are multiple ways to configure a workspace to reach the same goal, it is often best to choose the transformer most specifically suited to your task.As an example, when comparing address points to building polygons, there are a few ways to approach it.
该 first example, using a SpatialFilter to test whether or not points fall inside polygons, produces the correct result.But the SpatialFilter is a fairly complex transformer, able to test for multiple conditions and accept a wide range of geometry types.It isn’t optimized for the specific spatial relationship we are analyzing here.
With a SpatialFilter:
该 second example uses a PointOnAreaOverlayer, followed by a Tester.该 features output are the same as in the first method, but the transformer is optimized for this specific task.该 difference in processing time is substantial - from 54.3 seconds in the first configuration, down to 13.7 seconds in the second one.
With a PointOnAreaOverlayer and a Tester:
If performance is an issue in your workspace, look for alternative methods, guided by geometry.
组态
输入端口
点 (including text) features against which areas will be compared.
区域 features against which points will be compared.
输出端口
点 features, with attributes added according to transformer parameter configuration.Geometry is unmodified.
区域 features, with attributes added according to transformer parameter configuration.Geometry is unmodified.
Features with invalid geometries will be rejected and output via this port.
Rejected features will have anfme_rejection_codeattribute with one of the following values:
INVALID_POINT_GEOMETRY_TYPE
INVALID_POLYGON_GEOMETRY_TYPE
INVALID_POLYGON_GEOMETRY_VERTICES
INVALID_POLYGON_GEOMETRY_DEGENERATE
EXTRA_POLYGON_FEATURE
Rejected Feature Handling:can be set to either terminate the translation or continue running when it encounters a rejected feature.This setting is available both as a defaultFME optionand as aworkspace parameter。
参数
通过...分组 | 该 default behavior is to use the entire set of features as the group.This option allows you to select attributes that define which groups to form. |
集团By模式 | 过程在结束(封闭): This is the default behavior.Processing will only occur in this transformer once all input is present. 过程当组更改(高级): 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.
注意事项使用通过...分组
有使用两个典型原因过程当组更改(高级)。第一个是有意识地在组要被处理(并且已经如此命令)传入的数据。在这种情况下,结构使然集团通过使用 - 而不是性能方面的考虑。 第二个原因可能是潜在的性能提升。 性能提升是最有可能当数据已经排序(或使用阅读SQL ORDER BY声明),因为更少的工作需要FME的。如果数据需要排序,它可以在工作区中进行排序(虽然增加的处理开销可能会抵消任何收益)。 排序根据数据流的数目变得更困难。多个数据流可以几乎是不可能的排序到正确的顺序,因为所有的功能匹配通过...分组值需要到达之前的任何特征属于下一组(任何特征类型或数据集的)。在这种情况下,使用通过...分组同过程在结束(封闭)可能是等效的和简单的方法。 注意:多种要素类型和特点从多个数据集通常不会自然出现在正确的顺序。 如同许多情况下,在您的工作与你的数据测试不同的方法是确定性能提升的唯一准确的方法。 |
Overlap Count Attribute | 该Overlap Count Attribute添加到输出点特征的数量 area features that they were inside of.该Overlap Count Attributeadded to output area features holds the number of point features that they contained. |
地区第一 | If地区第一is set to是, then the PointOnAreaOverlayer assumes that all Area features will enter the transformer before any Point features.This can reduce memory use of the PointOnAreaOverlayer if you have many Point features to overlay.Any further Area features that arrive after the first Point feature will be logged with a warning and discarded. If the集团By模式parameter is set to过程当组更改, the地区第一requirement applies to each group separately.This means that the Area and Point features from the first group must enter the transformer before the Area and Point features from the second group. |
Aggregate Handling | Choose how aggregate geometries are to be handled. 解聚:Decompose aggregates into their individual components. 拒绝:Do not process aggregates and output them via the
|
If attributes on the incoming and original feature share the same name, but are not geometry attributes that start with fme_, then they are deemed conflicted.
Accumulation Mode | 合并传入: The original feature will retain all of its own un-conflicted attributes, and will additionally acquire any un-conflicted attributes that the incoming feature has.This mode will handle conflicted attributes based on the Conflict Resolution parameter. 前缀传入: The original feature will retain all of its own attributes.In addition, the original will acquire attributes reflecting the incoming feature’s attributes, with the name prefixed with the Prefix parameter. 只使用传入: The original feature will have all of its attributes removed, except geometry attributes that start with fme_.该n, all of the attributes from one (arbitrary) incoming feature will be placed onto the original. |
Conflict Resolution | 使用原始: If a conflict occurs, the original values will be maintained. 使用入站: If a conflict occurs, the values of the incoming will be transferred onto the original. |
Prefix | If theAccumulation Modeparameter is set to前缀传入, this value will prefix attributes that are being added to the original feature from the incoming feature. |
Generate List on Output ‘Point’
When enabled, adds a list attribute to the Point output features, and the attributes of each area containing an output point are added to that point's list.
Note that no intersections between area features are computed.
‘Point’ List Name | Enter a name for the list attribute. 注意:列表属性are not accessible from the output schema in Workbench unless they are first processed using a transformer that operates on them, such asListExploderorListConcatenator。Alternatively,AttributeExposercan be used. |
Add To 'Point' List | 所有属性: All attributes will be added to the output Point features. 所选属性: Enables the所选属性parameter, where specific attributes may be chosen for inclusion. |
所选属性 | Enabled whenAdd To 'Point' Listis set to所选属性。Specify the attributes you wish to be included. |
Generate List on Output ‘Area’
When enabled, adds a list attribute to the Area output features, and the attributes of each point contained by an output area are added to that area's list.
Note that no intersections between area features are computed.
‘Area’ List Name | Enter a name for the list attribute. 注意:列表属性are not accessible from the output schema in Workbench unless they are first processed using a transformer that operates on them, such asListExploderorListConcatenator。Alternatively,AttributeExposercan be used. |
Add To 'Area' List | 所有属性: All attributes will be added to the output Area features. 所选属性: Enables the Selected Attributes parameter, where specific attributes may be chosen for inclusion. |
所选属性 | Enabled whenAdd To 'Area' Listis set to所选属性。Specify the attributes you wish to be included. |
编辑变压器参数
使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击适用的参数旁边。欲了解更多信息,请参阅变压器参数菜单选项。
定义值
有几种方法来定义一个变压器使用的值。最简单的是简单地在一个值或字符串,其可包括各种类型,如属性引用,数学和字符串函数,和工作空间参数的函数类型。有许多的工具和快捷方式,可以帮助构建值,一般可从邻近值字段的下拉上下文菜单。
Using the Text Editor
该 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
该 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
Set values depending on one or more test conditions that either pass or fail.
Parameter Condition Definition Dialog
Content
Expressions and strings can include a number of functions, characters, parameters, and more.
When setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated.该refore, the names of these functions (in the form @<function_name>) should not be used as literal string values.
参考
Processing Behavior |
|
Feature Holding |
是 |
Dependencies | |
FME Licensing Level | FME Professional Edition and above |
Aliases | |
History | |
Categories |
FME社亚搏国际在线官网区
该FME社区是为亚搏国际在线官网演示,入门指南,文章,FAQ,以及更多的地方。解答您的问题,向其他用户学习,并建议,投票,并在新的功能注释。
搜索有关PointOnAreaOverlayer所有结果在FME社区。亚搏国际在线官网
实例可以包含开放政府许可协议进行许可信息 - 温哥华