特征表示
MIF features consist of geometry and attributes. The attribute names are defined in the DEF line and there is a value for each attribute in each MIF feature. In addition, each MIF feature contains several special attributes to hold the type of the geometric entity and its display parameters.
所有MIF功能都包含mif_type.attribute, which identifies the geometric type. All MIF features may contain either or both of theFME_COLOR.andfme_fill_color属性分别存储颜色并填充功能的颜色。
除了FME Workbench添加到所有功能的通用FME功能属性之外(参见About Feature Attributes),此格式添加本节中描述的格式特定属性。
属性名称 |
内容 |
mif_type. |
这个实体的MIF几何类型。 Range: mif_point mif_polyline. mif_region. mif_text |mif_ellipse. mif_arc. mif_rectangle mif_rounded_rectangle. mif_collection. mif_none. 默认:No default |
FME_COLOR. |
规范化的RGB值代表的颜色the feature, with format r,g,b. Range:0,0,0-1,1,1. 默认:No default |
fme_fill_color |
表示特征的填充颜色的归一化RGB三联体,格式R,G,B。 Range:0,0,0-1,1,1. 默认:No default |
Points
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF点功能指定单个Xandy除任何关联的用户定义属性外,坐标。也可以读取或写入点特征的聚合 - 这对应于MIFMULTI_POINTprimitive type.
MIF点还指定符号。符号由符号编号,颜色和大小定义。如果没有为点实体定义符号,则使用先前的符号。
下表列出了用于控制MIF符号设置的特殊FME属性名称。1MapInfo符号无法旋转。但是,某些第三方附件到MapInfo基于用户定义的rotation属性旋转符号。
属性名称 |
内容 |
mif_symbol_color. |
符号的颜色。MapInfo颜色定义为红色,绿色和蓝色的相对浓度。每个颜色范围为0到255,并且颜色值根据公式计算: Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_symbol_shape |
The number of the symbol. See theMapInfo参考手册for a list of the available symbols. Range:31 ... 67. 默认:35(星星) |
mif_symbol_size. |
The point size of the symbol. Note that this size is不是根据缩放级别缩放。 Range:Any integer number > 0 默认:10. |
字体要点
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF font point are very similar to MIF points, but allow a symbol based on a TrueType font to be specified. In addition to the font, may specify rotation, color, shape number, size, and style.
下表列出了用于控制MIF字体点设置的特殊FME属性名称:
属性名称 |
内容 |
mif_symbol_color. |
根据公式计算的符号的颜色: Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_symbol_shape |
要用作符号的TrueType字体内的形状的数量。 Range:整数 默认:No default |
mif_symbol_size. |
The point size of the symbol. Range:整数 默认:12. |
mif_symbol_font |
用于符号的TrueType字体的名称。 Range:细绳 默认:No default |
mif_symbol_angle |
符号的旋转角度,从水平逆时针以逆时针测量。 Range:-360.0..360.0. 默认:0. |
mif_symbol_style |
The display style for the symbol. Range: 0(纯文本) 1(Bold text) 16(符号周围的黑色边框) 32 (Drop Shadow) 256 (White border around symbol) 默认:0. |
自定点
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF自定义点与MIF点非常相似,但允许将位图图像指定为要绘制的符号。除了图像,颜色,大小和样式之外,还可以指定。
下表列出了用于控制MIF自定点设置的特殊FME属性名称:
属性名称 |
内容 |
mif_symbol_color. |
根据公式计算的符号的颜色: 是否使用颜色是否取决于样式属性的设置。 Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_symbol_file_name. |
The name of the bitmap file found in the MapInfoCustsymb.文件夹。 Range:细绳 默认:No default |
mif_symbol_size. |
The point size of the symbol. Range:整数 默认:12. |
mif_symbol_style |
The display style for the symbol. Range: 0(图像中的白色像素是透明的,允许在下面展示任何内容。非白色像素以与位图相同的颜色绘制。) 1(图像中的白色像素被绘制为白色。非白色像素以与位图中的相同颜色绘制。) 2(图像中的白色像素是透明的。非白色像素以指定的颜色绘制mif_symbol_color.。) 3(图像中的白色像素在白色绘制。非白色像素以指定的颜色绘制mif_symbol_color.) 默认:0. |
多点
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF MultiPoint功能指定每个由一个定义的多组点数Xandycoordinate. All the points share the same attributes and geometry. This is supported as a homogeneous aggregate feature composed of points, font points or custom points.
The MIF multipoint uses the same attribute names control settings as the points, font points and custom point.
Polylines
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF折线特征指定由X和Y坐标序列定义的线性特征。每个折线都有一个与它相关的笔式,指定线的颜色,宽度和笔图案。折线也可以指定它是平滑线,在这种情况下,MapInfo在渲染线时使用曲线拟合算法2MapInfo renders smoothed polylines substantially slower than unsmoothed polylines.。If no pen style is defined, the previous style is used.
笔记:提示:MapInfo MIF supports a special type for two point lines. The FME transparently converts such MIF线进入折线,既读取MIF文件,也可以写它。
The table below lists the special FME attribute names used to control the MIF polyline settings.
属性名称 |
内容 |
mif_pen_color |
The color of the polyline. MapInfo colors are defined in relative concentrations of red, green, and blue. Each color ranges from 0 to 255, and the color value is calculated according to the formula: Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_pen_pattern. |
用于绘制线的模式。看看MapInfo参考手册for a list of the available patterns. Range:1 ... 77. 默认:2 |
mif_pen_width. |
为折线特征呈现的行的宽度。这被测量为像素的厚度。宽度为1总是被绘制为发际线。宽度为0应被认为是没有宽度的线,或没有风格或不可见的线,并且通常不应使用。如果需要一个不可见的行,则应通过将模式设置为1(无)来创建它。如果需要发际线,则应通过将宽度设置为1来创建笔。 宽度可以指定为点宽,在这种情况下,使用此公式:PENWIDTH =(点宽* 10)+ 10 Range:0 ... 7(像素宽度) 11 ... 2047(点宽) 默认:1 |
mif_smooth |
控制渲染时是否会平滑折线。 Range:真实|假 默认:错误的 |
地区
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF region features specify area (polygonal) features. The areas that make up a single feature may or may not be disjoint, and may contain polygons that have holes. Each region has a pen style associated with it to control the color, width, and pen pattern used when its boundary is drawn. In addition, a region may set its brush pattern, foreground, and background color to control how its enclosed area will be filled. If no pen or brush style is defined for a region entity, the previous style is used. The following table lists the special FME attribute names used to control the MIF region settings.
属性名称 |
内容 |
mif_brush_pattern |
用于填充该区域的模式包含。看看MapInfo参考手册有关可用刷模式的列表。 Range:1 ... 71. 默认:2(坚实) |
mif_brush_foreground. |
The foreground color used when the region is filled. MapInfo colors are defined in relative concentrations of red, green, and blue. Each color ranges from 0 to 255, and the color value is calculated according to the formula: Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_brush_background. |
The background color used when the region is filled. (-1 specifies transparent color) Range:-1…2^24 - 1 默认:16777215 (white) |
mif_pen_color |
The color of the boundary of the region. Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_pen_pattern. |
用于绘制区域边界的模式。看看MapInfo参考手册for a list of the available patterns. Range:1 ... 77. 默认:2 |
mif_pen_width. |
为该区域的边界呈现的行的宽度。这被测量为像素的厚度。宽度为1总是被绘制为发际线。宽度为0应被认为是没有宽度的线,或没有风格或不可见的线,并且通常不应使用。如果需要一个不可见的行,则应通过将模式设置为1(无)来创建它。如果需要发际线,则应通过将宽度设置为1来创建笔。 Range:0.。。。35 默认:1 |
mif_center_xcoord. |
质心x坐标。 Range:任何实数 默认:0. 责备:是的 |
mif_center_ycoord. |
The centroid y coordinate. Range:任何实数 默认:0. 责备:是的 |
Text
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF text features are used to specify annotation information. Each text feature can have its font, color, spacing, justification, and rotation angle set independently. The following table lists the special FME attribute names used to control the MIF text settings.
属性名称 |
内容 |
mif_rotation |
文本的旋转,如从水平逆时针逆时针测量的。 Range:-360.0..360.0. 默认:0. 责备:是的 |
mif_text_fontbgcolor |
The background color used when the text is drawn. Range:0 ... 2 ^ 24 - 1 默认:16777215 (white) |
mif_text_fontfgcolor. |
The foreground color used when the text is drawn. MapInfo colors are defined in relative concentrations of red, green, and blue. Each color ranges from 0 to 255, and the color value is calculated according to the formula: Range:0 ... 2 ^ 24 - 1 默认:0(黑色) |
mif_text_fontname. |
用于绘制文本的字体的名称。必须在目标计算机系统上找到名为的字体。 Range: 默认:Arial |
mif_text_fontstyle. |
文本的风格代码。此标志控制文本是否粗体,下划线,斜体等。看到MapInfo参考手册有关样式代码列表及其含义。下面列出了可能的标志设置的基本范围。还允许各种值的组合。例如,值6表示粗体和斜体文本样式: Range: 0 - 平原 1 - 粗体 2 - 斜体 4 - 下划线 16 - 大纲(仅在Macintosh上支持) 32 - 阴影 256 - Halo 512 - 所有帽子 1024 - 扩展 默认:0.(plain text) |
mif_text_height. |
地面单位的文本的高度。 Range:任何实数> = 0 默认:10. 责备:是的 |
mif_text_justification. |
文本的理由。 Range:左边中心|对 默认:剩下 |
mif_text_spacing. |
The spacing between lines of multiline text. The measure is expressed as a multiple of the text height. Range:1。0.| 1.5 | 2.0 默认:1。0. |
mif_text_string. |
The text to be displayed. Range:任何字符串 默认:No default |
mif_text_width. |
地面单元中文文本字符串的总宽度。MIF文本表示存储文本的边界框,mif_text_width.is the width of the bounding box. Range:任何实数> = 0 默认:10. 责备:是的 |
mif_text_linetype |
The type of line attaching the text to the anchor point. Range:0.(None: do not display a line with the label.) 1(简单:使用将标签连接到锚点的简单行创建标注。) 2(Arrow: create a callout by using an arrow and line that connects the label to anchor point.) 默认:0.(None) |
mif_text_line_end_x. |
标签线终点的x位置。标签行需要为1或2才能可见。 Range:任何实数 默认:No default 责备:是的 |
mif_text_line_end_y. |
The y position of the label line end point. The linetype needs to be 1 or 2 for the label line to be visible. Range:任何实数 默认:No default 责备:是的 |
提示:提示:除非指定字体名称,否则不会使用字体颜色和样式设置。
Ellipse
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF椭圆特征是点特征,只有单个坐标。这一点用作椭圆的中心。附加属性指定椭圆的主轴和次轴。MIF椭圆目前不支持旋转。为了与其他系统的兼容性,MIF读取器始终返回0的旋转0.如果向编写器指定旋转,则椭圆将变为区域,矢量化,并按指定的量旋转。
提示:提示:The primary ellipse axis is不是necessarily the longest axis, but rather the one on the x axis.
In addition to the attributes below, ellipses also make use of the brush and pen attributes as defined bymif_region.。
属性名称 |
内容 |
mif_primary_axis. |
地面单位半主轴的长度。 Range:任何实数> 0 默认:No default 责备:是的 |
mif_secondary_axis. |
地面单元中半缩小轴的长度。 Range:任何实数> 0 默认:No default 责备:是的 |
mif_rotation |
The rotation of the major axis. The rotation is measured in degrees counterclockwise up from horizontal. Range:-360.0..360.0. 默认:0. 责备:是的 |
弧
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF弧功能是用于指定椭圆弧的线性功能。因此,特征定义mif_arc.类似于具有两个额外角度的椭圆定义来控制绘制椭圆边界的一部分。MIF弧当前不支持旋转。为了与其他系统的兼容性,MIF读取器始终返回0的旋转。另外,如果将旋转指定给写入器,则电弧变成折线,矢量化,并按指定的量旋转。
提示:ArcStroker变压器可用于将弧形转换为Linestring。这对于在不直接支持它们的系统中存储弧。
除了下面的属性外,弧还会使用定义的笔属性mif_polyline.。
属性名称 |
内容 |
mif_primary_axis. |
地面单位半主轴的长度。 Range:任何实数> 0 默认:No default 责备:是的 |
mif_secondary_axis. |
地面单元中半缩小轴的长度。 Range:任何实数> 0 默认:No default 责备:是的 |
mif_start_angle |
fme如何计算start_angle和sweep_angle Range:0.。0.。。360.0 默认:0. 责备:是的 |
mif_sweep_angle. |
fme如何计算start_angle和sweep_angle Range:0.。0.。。360.0 默认:No default 责备:是的 |
mif_rotation |
椭圆的旋转定义弧。旋转角度以逆时针方向从水平轴线到初级轴的角度。 Range:-360.0..360.0. 默认:0. 责备:是的 |
长方形
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF rectangle objects are represented in the FME as closed polygons. When a MIF rectangle is read, it is turned into a closed polygon feature. When a MIF rectangle is written, the minimum bounding rectangle of the feature is taken and used as the four corners of the rectangle. MIF rectangles take the same additional attributes as MIF regions to specify their brush and pen.
圆形矩形
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF圆角矩形对象在FME中表示为封闭的多边形。当读取MIF圆角矩形时,它变成了封闭的多边形特征,并且拐角矢量化以保持矩形的预期形状。舍入半径也作为属性存储。
MIF圆角矩形时,二分音符um bounding rectangle of the feature is taken and used as the four corners of the rectangle, and the rounding diameter is taken from an attribute of the feature. MIF rounded rectangles take the same additional attributes as MIF regions to specify their brush and pen.
属性名称 |
内容 |
mif_rounding. |
Contains the diameter in ground unit, of the circle used to produce the rounded corners. Range:任何实数> 0 默认:No default |
Collection
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_ReadersWriters/mif/../Skins/Default/Stylesheets/Images/transparent.gif)
MIF集合被定义为其他特征类型的组合。这表示为由其他特征类型组成的非均匀聚集体。
To create MapInfo collections using FME, set themif_type.归因于mif_collection.on the feature destined for the MIF dataset. It is important that the feature to be saved as a collection is an aggregate feature.
下表列出了用于控制MIF集合设置的特殊FME属性名称:
属性名称 |
内容 |
mif_collection_comp {} 弃用 |
这是用于存储每个集合部分的属性的列表属性前缀。后缀是其他要素类型的控制设置的属性名称。 Range:没有任何 默认:没有任何 |