Reader Directives

列出的后缀是由当前的前缀在映射文件中。默认情况下,对于GDMS阅读器是GDMS.

数据集

必填/可选:Required

This keyword’s value is the folder containing the GDMS files to be read.

例子:

gdms_dataset c:\ data \ gdms \输入

工作台参数:Source Geographic Data Management System (GDMS) Folder

system_units.

必填/可选:可选的

此设置确定GDMS文件中的坐标的缩放因子。所有坐标都乘以此值。默认值是1.0

例子:

gdms_system_units 1000.0

X_OFFSET

This setting determines the X offset of coordinates within the GDMS files. This value is added to all X coordinates. The default value is0.

例子:

gdms_x_offset 300.0

Y_OFFSET

此设置确定GDMS文件中的坐标的Y偏移量。此值添加到所有y坐标。默认值是0.

例子:

GDMS._Y_OFFSET 300.0

DEF

必填/可选

Required

必须在单独指定所有三种GDMS输入文件类型的精确格式DEFlines before these files are read. These definition lines also provide the file names of each input file. The full path name of each file is determined by using the folder location from the数据集关键字和文件名DEF线。

这syntax of theDEF行取决于它指定的文件和记录类型。第一个象征DEF线条表明其余的其他语法和使用DEF行如下:

gdms_def <定义类型> ...

每个定义类型都在下表中给出。参考Example Mapping File from GDMS to Shape有关每个定义类型的属性名称和定义列表。

Definition Type

使用和语法

Vertices_Record_1.

此DEF行指定顶点文件位置和顶点记录类型1的格式。

此DEF线的完整语法是:

_DEF VERTICES_RECORD_1 \

gdms_vertices_filename \

[ ] *

vertices_record_n.

此DEF行指定顶点记录类型2.此DEF行的完整语法是:

_DEF VERTICES_RECORD_N \

[ ] *

CROSSREF_RECORD

此DEF行指定CrossRef文件位置和CrossRef记录的格式。此DEF线的完整语法是:

_DEF CROSSREF_RECORD \

gdms_crossref_filename \

[ ] *

text_layer_header.

此DEF行指定TextData文件位置和TextData头记录的格式。还明确给出了报头记录的大小。此DEF线的完整语法是:

_def text_layer_header \

GDMS._TEXT_LAYER_FILENAME \

GDMS._RECORD_SIZE \

[ ] *

text_layer_text.

This DEF line specifies the format of the Text element record within the TEXTDATA file. The size of the record is also explicitly given. The full syntax of this DEF line is:

_def text_layer_text \

GDMS._RECORD_SIZE \

[ ] *

text_layer_poly.

This DEF line specifies the format of the Polyline/Polygon element record within the TEXTDATA file. The size of the record is also explicitly given. The full syntax of this DEF line is:

_def text_layer_poly \

GDMS._RECORD_SIZE \

[ ] *

TEXT_LAYER_CIRCLE

This DEF line specifies the format of the Circle element record within the TEXTDATA file. The size of the record is also explicitly given. The full syntax of this DEF line is:

_DEF TEXT_LAYER_CIRCLE \

GDMS._RECORD_SIZE \

[ ] *

TEXT_LAYER_SYMBOL

此DEF行指定TextData文件中的符号元素记录的格式。还明确地说明了记录的大小。此DEF线的完整语法是:

_DEF TEXT_LAYER_SYMBOL \

GDMS._RECORD_SIZE \

[ ] *

- 可以指定属性名称作为任何内容,但请注意其中几个DEFlinetypes some reserved attribute names are expected somewhere within the line.

- 字段类型指定已在定义的记录中找到每个属性的精确长度和字节位置。字段类型还指示了该记录区域的原始日期类型的解释。下表提供了可能的字段类型。

提示:提示:这些类型与CAT类型可用的类型相同关系表读者。

字段类型

描述

整数(<宽度>,<位置>)

整数字段包含以ASCII格式存储的整数值。

Width参数是分配给字段的总字节数。

位置参数是GDMS记录中字段的起始字节。字节从1开始编号。

真实(,<位置>)

Real fields hold floating point values stored in ASCII format.

这width parameter is the total number of bytes allocated to the field, including the decimal point.

位置参数是GDMS记录中字段的起始字节。字节从1开始编号。

String(, )

String fields hold fixed length strings.

这width parameter is the number of bytes that the field holds. When a character field is retrieved, any padding blank bytes are stripped.

位置参数是GDMS记录中字段的起始字节。字节从1开始编号。

Bigendian(
<位置>)

BigEndian字段保存整数值存储在大-endian binary format.

Width参数是分配给字段的总字节数。唯一有效的宽度值是:

1将字段解释为8位整数

2将字段解释为16位整数

4 to interpret the field as a 32 bit integer

位置参数是GDMS记录中字段的起始字节。字节从1开始编号。

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

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

必填/可选

可选的

工作台参数

最小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.

坐标系指令指定与要读取的数据关联的坐标系,必须始终设置search_envelope_coords_system.指令已设置。

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

必填/可选

可选的

映射文件语法

_search_envelope_coords_system <坐标系>

工作台参数

搜索信封坐标系

CLIP_TO_ENVELOPE

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

价值

是的否(默认)

映射文件语法

_clip_to_envelope [是|不]

工作台参数

剪辑到信封