你在这里: Filters and Joins > DatabaseJoiner

DatabaseJoiner

DatabaseJoiner:Joins attributes from an external table to incoming features as they are being processed through a translation.

DatabaseJoiner查询外部表以检索与功能关联的属性。将一个或多个要素属性联接到数据库表中的一个或多个列,并将匹配表行中的值作为要素属性添加。

_matched_records.属性指定数据库中与功能匹配的记录数。

Output Ports

参数

DatabaseJoiner是一个非常强大的变形因素,具有许多与性能相关的设置。

Reader

Join

合并属性

Optimize

提示: 如果DatabaseJoiner转换器只在表中的已知记录子集上匹配,那么在匹配之前预取该记录子集通常会更有效。

使用说明

Relationship to特色合并

这特色合并joins two datasets being read in a workspace. FeatureMerger is also able to perform certain geometric operations on incoming features using its合并类型参数。特色合并performs all joins in memory, so it can be faster than the DatabaseJoiner if you have more than one relationship on the same data. DatabaseJoiner joins are performed by the database using SQL. The articleFME2011用例:Joiner VS Featuremergercontains a more detailed comparison of these transformers.

Relationship toInlineQuerier/SQLCreator/SQLExecutor

当在流过FME和数据库中的数据之间存在一对一或一对多的关系时,DatabaseJoiner非常有用和有效。如果可以使用它,DatabaseJoiner可以比使用Inlinequerier或SQLCreator / SQLExecutor更有效,只要DatabaseJoiner键字段在源数据库中具有索引。DatabaseJoiner允许基于多个属性键的简单连接关系,并且不需要对SQL的了解 - 这通常对简单的查找表来说非常有效。SQLCreator / SQLExecutor允许更复杂的连接,这些连接由源数据库执行。

inlinequeryer在数据源没有SQL功能的情况下很有用,或者对于更复杂的查询。InlineQuerier允许您提出比DatabaseJoiner更复杂的关于数据的问题。

例子

编辑变压器参数

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变压器参数菜单选项

变压器类别

属性

Filters and Joins

搜索FME知识中心

在上搜索有关此变压器的示例和信息FME知识中心