Reader Directives

列出的后缀是由当前的前缀in a mapping file. By default, thefor the SQLite3 reader isSQLITE3

DATASET

这是SQLite3数据库的文件名。

A logical SQLite3 dataset consists of one or more files in the same folder. Files can have any extension but the following file extensions are commonly used:

  • 。D band.sl3.是等同的;然而。D bfile extension is more commonly used. These file extensions are not exclusive to the SQLite 3 format.

    此扩展将添加到SQLite3文件的BaseName中。

    必填/可选

    Required

    例子

    sqlite3_dataset c:/data/citysource.db

    工作台参数

    Source SQLite3 Database File(s)

    DEF

    必填/可选:Required

    定义的语法是:

    SQLITE3_DEF  \ [sqlite3_sql_statement ] \ [sqlite3_where_clause ] \ [ ] +

    OR

    SQLITE3_DEF  \ [sqlite3_sql_statement ] \

    <Tablename.>must match the name of an existing SQLite3 table in the database. This will be used as the feature type of all the features read from the table. The exception to this rule is when using thesqlite3_sql_statement关键词。在这种情况下,DEF名称可以是任何有效的字母标识符;它不一定是现有的表名称 - 而是,它是自定义SQL查询的标识符。从SQL查询返回的所有功能的特征类型都会给出查询名称。

    <FieldType.>必须给出每个字段,但不会根据字段的数据库定义验证。实际上,它被忽略了。

    这definition allows specification of separate search parameters for each table. If any of the per table configuration parameters are given, they will override, for that table, whatever global values have been specified by the reader keywords such as the在哪里_CLAUSE。如果未指定任何这些参数,则将使用全局值。

    下表总结了定义行配置参数:

    范围

    内容

    sqlite3_where_clause.

    这将指定应用于图层功能属性的SQL,以限制返回的功能集。如果未指定此项,则返回所有行。如果存在sql3_sql_statement,则将忽略此关键字。

    sqlite3_sql_statement

    This specifies an SQL SELECT query to be used as the source for the results. If this is specified, the SQLite3 reader will execute the query, and use the resulting rows as the features instead of reading from the table . All returned features will have a feature type of , and attributes for all columns selected by the query. The sqlite3_where_clause is ignored if sqlite3_sql_statement is supplied. This form allows the results of complex joins to be returned to FME.

    如果不<然而>is specified, all rows in the table will be read and returned as individual features. If a<然而>指定,只读取由子句选择的那些行。请注意<然而>does not include the word在哪里

    SQLite3读卡器允许人使用sqlite3_sql_statementparameter to specify an arbitrary SQL选择查询def行。如果指定了这一点,FME将执行查询,并使用查询返回的每一行数据来定义至少一个功能。这些功能中的每一个都将被给出DEF行中命名的功能类型,并且将包含由返回的每列的属性选择。在这种情况下,所有DEF线参数参数在哪里条款或空间查询被忽略,因为可以直接在文本中嵌入此信息

    在以下示例中,将从供应商表中读取ID小于5的所有记录:

    SQLITE3_DEF supplier \ sqlite3_where_clause "id < 5" \ ID integer \ NAME text \ CITY text

    在这个例子中,加入的结果employeeand城市表返回。每个返回的功能都存在来自两个表的所有属性。要素类型将设置为复杂的

    SQLITE3_DEF complex \ sqlite3_sql_statement \ "SELECT * FROM EMPLOYEE, CITY WHERE EMPLOYEE.CITY = CITY.NAME

    IDs

    必填/可选:Optional

    此可选规范用于限制将读取的可用和定义的数据库表。如果不IDs指定,然后读取所有表。的语法IDs关键字是:

    sqlite3_ids  \  ... \ 

    这feature types must match those used in DEF lines.

    以下示例仅选择历史table for input during a translation:

    SQLITE3_IDs HISTORY

    RETRIEVE_ALL_SCHEMAS

    This parameter is applicable only when generating a mapping file, generating a workspace, or when retrieving schemas in an FME Objects application.

    设置到yes,返回数据库中所有表和要素类的模式。

    设置到no(or missing), and ifRetrieve_all_table_names.类似地设置为no(or missing), only schemas requested by the IDs parameter are returned.

    必填/可选

    Optional

    价值

    是的否(默认)

    NO:这reader will return the schemas for the feature types specified in the IDs. If no features are specified in IDs, then FME returns the schema features for all the tables.

    如果不指定这个值,那么认为to be No.

    是的:指示读者返回数据库中表的所有模式。

    映射文件语法

    不适用。

    FME对象应用程序将包括RETRIEVE_ALL_SCHEMAS然后在传递到的参数阵列中“是”ifmeuniversalreader :: open()

    工作台参数

    不适用

    search_envelope.

    Using the minimum and maximum x and y parameters, define a bounding box that will be used to filter the input features. Only features that interact with the bounding box are returned.

    如果搜索信封的所有四个坐标指定为0,则将禁用搜索信封。

    映射文件语法

    _SEARCH_ENVELOPE

    笔记:如果搜索信封的所有四个坐标指定为零,则将禁用搜索信封。

    必填/可选

    Optional

    工作台参数

    最小x,最小y,最大x,最大y

    search_envelope_coords_system.

    This directive specifies the coordinate system of the search envelope if it is different than the coordinate system of the data.

    COORDINATE_SYSTEMdirective, which specifies the coordinate system associated with the data to be read, must always be set if thesearch_envelope_coords_system.指令已设置。

    如果设置了此指令,则搜索信封的最小和最大点是从中恢复的search_envelope_coords_system.to the readerCOORDINATE_SYSTEM在申请信封之前。

    必填/可选

    Optional

    映射文件语法

    _search_envelope_coords_System <坐标系>

    工作台参数

    搜索信封坐标系

    CLIP_TO_ENVELOPE

    此指令指定FME是否应将功能剪辑到指定的信封search_envelope.directive.

    价值

    是的否(默认)

    映射文件语法

    _clip_to_envelope [是|不]

    工作台参数

    剪辑到信封

    EXPOSED_ATTRS

    This directive allows the selection of format attributes to be explicitly added to the reader feature type.

    This is similar to exposing format attributes on a reader feature type once it has been generated; however, it is even more powerful because it enables schema-driven applications other than Workbench to access and leverage these attributes as if they were explicitly on the schema as user attributes.

    挑选属性列表的结果是一个逗号分隔的属性名称列表,将添加到架构功能中。目前,所有读取器功能类型都将接收相同的读取器实例的其他架构属性集。

    必填/可选

    Optional

    映射文件语法

    不适用。

    While it is possible for FME Objects applications to invoke this directive, the required format is not documented.

    此指令仅用于我们的GUI应用程序(例如,工作台)。

    工作台参数

    曝光的其他属性