斯潘8
斯潘4
inlinequerier transformer提供了一种强大的功能,可以将多个数据集连接在一起,然后以任何方式提取您希望看到的数据。It is an interesting transformer in that it utilizes a SQLite database underneath so provides you with the full power of SQL to do data extraction.
如果您发现在工作区中使用了多个FeatureJoiner或FeatureMerge Transformers,the InLineQuerier might be a good alternative.
Still trying to decide which is the most appropriate join transformer to use?看文章合并或合并电子表格或数据库数据
When the InlineQuerier transformer is added to a workspace it has no input or output ports.
Input ports are built on the fly as you connect source data to the transformer and output ports are added as SQL statements are built inside the transformer.例如
见用户文档有关inlinequerier变压器的详细信息。可以下载示例工作区在这里.
将输入数据连接到“连接输入”端口后,列出桌子将添加到输入dialog box in the transformer.您可以连接任何读卡器功能类型或任何转换器,即上面显示的复印机移动器。
Table names are derived from the feature type or transformer name.您可以重命名输入表,if necessary.
这个柱列表定义将在定义Outputsbelow.当每个表都连接到变压器时,这是自动填充的。它在每个表中提取所有属性。However this is not necessary -only the Query attributes need to be explicitly defined.所有其他属性和几何图形将保存在fme_feature_content通过变压器传递的属性。There is a memory overhead to adding all the individual attributes,所以尽可能的短一些。
也,确保属性的数据类型正确,否则联接可能失败。例如,in the above image,pid是addressData中的varchar和propertyTax中的float,但它实际上是一个整数值。
这个进口按钮还将为您预加载这些属性列表,但会再次引入每个表中的所有属性。
输出端口在定义SQL语句时添加。根据从数据中提取的内容,可以有单个输出端口或多个输出端口。并非所有的输入表都需要在所有SQL语句中使用,但只有在输入列中定义的属性才能在SQL中使用。The Output ports can be named descriptively to help document the transformer.
SQL查询
这个SQL查询可以使用SQL编辑器构建,并且可以根据需要涉及单个表或多个表。Any attributes referenced in the SQL Statement must be defined in the Columns list above.All other attributes and geometry are maintained in an fme_feature_content attribute.如果查询结果包括fme_feature_content属性(显式或通过使用select*),然后原始特性的内容将包含在输出特性中。
SQLite is the underlying database used by InlineQuerier,所以SQL语句必须使用SQLite SQL syntax 和一个SQLite辅导的.
这个生成按钮可用于为“输入”部分中的每个表生成一条SELECT*语句。
几何学
这个几何学选项控制如何在输出特征上生成几何图形。If set to "First Feature" - then the geometry of the first source table in the SQL statement FROM will be output on the generated features.例如,如果要将地址数据(点几何图形)连接到PropertyTax(无几何图形),可以使用:
SELECT * FROM "AddressData" a,"PropertyTax" b where a.PID = b.PID;
or
SELECT * FROM "PropertyTax" b,“地址数据”a,其中a.pid=b.pid;
In the first you'll get the point geometry from the AddressData and in the second you'll get no-geometry from the PropertyTax
如果几何图形设置为“所有特征的聚合”,则特征将具有所遇到的所有几何图形的聚合几何图形。
?2019安全亚搏在线软件公司|合法的