Writer Directives
由MIF编写器处理的指令下面列出。显示的后缀是由当前的前缀
DATASET
Required/Optional:Required
The value for this keyword is the folder containing the MIF file(s) to be written.
Workbench Parameter:Destination MapInfo Folder
def
Required/Optional:Required
The MIF writer processes this directive as described in theReader Directivessection.
COORDSYS_STATEMENT
Required/Optional:Required
The value for this directive is the coordinate system statement that should be written to the header of the produced MIF files. Normally, FME examines the coordinate system information present on the features written to the MIF files, and generates a coordinate system statement based on this information. However, in certain circumstances it is necessary to override this and force a particular coordinate system to be output into the file. This is typically done to force the units of anon-earthprojection to something other than the default, which are meters.
The syntax of this line is the same as the line defined for theCoordSys
line in the MapInfo MIF/MID documentation. For example, to force a non-earth inches coordinate system, this line would be present in the mapping file:
mif_coordsys_statement coordsys nonearth单位\“in \”
The FME appends bounds information to this statement when it is written to the MIF file. Notice that the quotes must be escaped, as they are required when the coordinate system statement is written to the MIF file.
Workbench Parameter:Coordinate System Statement
BOUNDS
This directive allows explicit setting of the bounds of the output features. Because MIF has limited precision available for the storage of coordinates, defining a tight bound on the range of the data can preserve more accuracy. When this directive is specified, the coordinate system string written to the top of the MIF file will contain this bounds specification. The syntax of this directive is:
MIF_BOUNDS
Workbench Parameter:Bounds Min X, Bounds Min Y, Bounds Max X, and Bounds Max Y
filename_prefix.
The value for this directive is prepended to every output file that is created by the writer.
For example, to have the word临时appear on the front of every file name, this line would be present in the mapping file:
MIF_FILENAME_PREFIX temp
WRITE_REGION_CENTROIDS
要将编写器输出输出计算区域质心并将x和y值存储在相应的mif_centroid_x和mif_centroid_y格式属性中。如果先前未设置格式属性,则写入器只会尝试计算质心值。如果没有设置格式属性或此指令,则不会计算任何质心值。该指令的语法是:
WRITE_REGION_CENTROIDS yes
Workbench Parameter
Generate and Write Region Centroids
编码
仅当您使用外国(非英语)字符集时,才适用此指令。
For example, if your data contains foreign characters, using this directive along with the encoding value ensures that the original characters are preserved.
Required/Optional
Optional
Values
Values supported by MapInfo 10:
SJIS, CP437, CP850, CP852, CP855, CP857, CP860, CP861, CP863, CP864, CP865, CP869, CP874, CP932, CP936, CP950, CP1250, CP1251, CP1253, CP1254, CP1255, CP1256, ISO8859-1, ISO8859-2, ISO8859-3, ISO8859-4, ISO8859-5, ISO8859-6, ISO8859-7, ISO8859-8, ISO8859-9
Mapping File Syntax
Workbench Parameter
Character Encoding (optional)
sepitator_character.
The value of this directive is the character to be used as the delimiter. The default value is a comma, but another character may be specified.
Required/Optional
Required
Values
Comma(,), semicolon(;), vertical bar (|), space, tab, or other user-specified character
Mapping File Syntax
Workbench Parameter
Separator Character
quote_attribute_values.
此指令指定是否围绕引号中的输出属性值。选择是以始终围绕引号中的属性值,并在必要时选择否以引号括起来。默认选项为否。
Required/Optional
Required
Values
Yes/No
Mapping File Syntax
Workbench Parameter
Quote Output Values
VERSION
此指令提供了输出文件的目标版本的提示。
这会影响日期字段的兼容性选项。具体而言,版本300和450将将日期/时间字段视为字符串。
Note that this option does not affect the overall version number written to the file. That is determined by the specific attribute types, geometry types, or coordinate systems. For example, if the coordinate system is “Krovak S-JTSK”, then the version is promoted to at least 900.
Required/Optional
Required
Values
300, 450, 900, 950, 1000, 1050, 1100, 1150
Mapping File Syntax
Workbench Parameter
File Version