Mapinfo MIF/MID文件格式中英文对照解释
上一篇 / 下一篇 2009-01-15 10:45:16 / 个人分类:地图相关
51Testing软件测试网/p&?'b&z*J.^N
MapInfo MIF/MID文件格式描述
k{k+L`ZR2k,}051Testing软件测试网GOC*M5]@
51Testing软件测试网C `z_jF.G
51Testing软件测试网Z*Qiy8O,D
(from Appendix A of MapInfo Reference)
Sv#N$]|YP Y051Testing软件测试网;f?W9h4@&q
(摘自MapInfo参考资料的附录a)51Testing软件测试网*v9d~XL u-v_E
(B(Q S%iF/RwqdDc5I0
c KZKs+@G,P&H051Testing软件测试网zRhN[2w ^
This appendix describes the data interchange format for MapInfo. In this
%v+XJDhv,S0
,NjT#X/X-iw!O0appendix, you will find information on:51Testing软件测试网0M4D}mX'h$}
3sb,Rw~Q,X-t0这个附录描述了MapInfo的数据交换格式。在这个附录中,你会发现如下信息:51Testing软件测试网9I6V~9S#FHmS7]
51Testing软件测试网G[~ IQ/K
MIF File header51Testing软件测试网4gi`&xo9B
dF\.~!iW0MIF Data Section51Testing软件测试网+K([umY#Q
51Testing软件测试网 n&ESD){)a
Pen, Brush, Symbol, and Font Codes in MIF
"tIPM"`!R0k9[I051Testing软件测试网v \t!]Ol
MID File
,G L2_%c/\C051Testing软件测试网u,p?;a%g]
,L6l s&a"VDU~H \051Testing软件测试网wC%{:N@,YrJ
This versatile format allows generic data to be attached to a variety of
^;j&M7Y`d`051Testing软件测试网,JNV0]1NF$@ f7Q
graphical items. It's ASCII, so it is editable, relatively easy to generate,51Testing软件测试网LM^"M1Q}wL
p {-g({d/WtE0and works on all platforms supported by MapInfo. Perhaps the best way to 51Testing软件测试网e,T"r-l3x
51Testing软件测试网~]"W[X,}XZ
understand the MapInfo Interchange Format (MIF) is to study the sample file
&q2U1re:x ZKk0
%x{-f_js2o#djr4i0at the end of this appendix in conjunction with the explanation of the file
O1[S Qz+s:M051Testing软件测试网_$zW]/k(h)MI
format. You can also create samples of your own by exporting files to MIF and
_m,Vd M/@k0
0K]6S(\k3V.?Q0then examining those files in a text editor.51Testing软件测试网X[#w8{,VF:ue
51Testing软件测试网p$P K!`SO'?
这种通用的格式允许把普通的数据添加到多种的图像元素中。MIF/MID文件采用ASCII编码,因此它是可编辑的、相对比较容易生成、并且可以工作在MapInfo支持的所有平台上。也许理解MIF格式的最好的方法是在读完这篇文章后,拿着MIF格式说明,研究一个MIF文件。你也可以通过“exporting files to MIF”创建你自己的MIF文件,然后在文本编辑器中好好的研究它。
;em_%{3y0
.Y Or~I J6W}0 51Testing软件测试网|u Su E hH]
51Testing软件测试网dJo1e,}1m:R8k
Mapinfo data is in two file -- the graphics reside in a .MIF file and textual51Testing软件测试网 fw$Ao+O]
P;YH;kJ+G;G0data is contained in a .MID file. The textual data is delimited data, with 51Testing软件测试网[!H&^7k/^/y|n7q_W c
(^btb@ a0one row per record and either Carriage Return, Carriage Return plus Line Feed,51Testing软件测试网A"^?5`@@1Z
51Testing软件测试网(b^l CEZ
or Line Feed between lines. The MIF file has two areas -- the file header and51Testing软件测试网 Q a$iJ4JQY
l)Ng]2K5W l0the data section. Information on how to create MapInfo tables is in the
,C'G@+n&_Q/C0
d9kFg4Mt0header; the graphical object definitions are in the data section.51Testing软件测试网T1X-}G `
~LAazAFf4I(d0MapInfo数据存在于两种文件中--图形数据存储在.MIF文件、文本数据存储在.MID文件。文本数据包括每一项记录的一行和回车,回车加换行,行之间的换行。MIF文件的数据包括两部分--文件头和数据区。文件头存放着如何创建MapInfo表格的信息;数据区存放着图形对象的解释。51Testing软件测试网I$Tv^}a ^Rs
'f*I1|$w0vM0 51Testing软件测试网G3Kc%h2L0[(L
51Testing软件测试网o\R8Le
{$H e*Y$Q S0=================MIF FILE HEADER===============51Testing软件测试网j I{LAWQ
n7\)_)Jz0
d/i$IMVaD#O4t~'R F'f0This is a descrīption of MIF file header with optional information in square51Testing软件测试网v#Jr*K-\3Fz
51Testing软件测试网 Rr ["Z;?|2|
brackets.
fw4mX f-xV051Testing软件测试网-MdeNaevf
下面是MIF文件头的描述(包括可选项,下表中由“[]”括起来的部分就是可选项)。51Testing软件测试网H/T8zrw!Ap.Z
V?9f5k'zB0
J yVek'n`6m051Testing软件测试网!vt&k.\m5OmPf^nng
Version n 51Testing软件测试网w\E XY
%UA"`&]F]s)^l4y0Charset "characterSetName"
,E9dUVS/E }!A051Testing软件测试网!j.j+_x;UC
[ DELIMITER "<c>" ]
h8U&r,E:U051Testing软件测试网,V6x#j{KN9fc*F'S.}
[ UNIQUE n,n.. ] 51Testing软件测试网(CfB^-]S1w
51Testing软件测试网p ZJB be~Bo
[ INDEX n,n.. ]
&r)^9O6hX/y5SU+Z051Testing软件测试网}YCs#^(Z
[ COORDSYS... ] 51Testing软件测试网f zBr*ys
51Testing软件测试网 lW_tX \&Adt
[ TRANSFORM... ]
/MU)NhKjE8_051Testing软件测试网/Qwa8g(i7A$M
COLUMNS n51Testing软件测试网-aC.w5P0SZ;N i
51Testing软件测试网 w#x {7B:Q%mJ
<name> <type>
](fU O,c R I0
Use1\ j0<name> <type> 51Testing软件测试网;^2vM-d7_kwVw
Qn6t d8O0…
;n0vV;q {a b2Zz0
(P2D6Zl#NaJ5h0…
#H7N4i6Q c0
l5Np L,O!y`*S _)k`0DATA51Testing软件测试网$a`n3m WG
C h"k ZMD:R0 51Testing软件测试网)N3Hb qg7| ZD
7f#tv FO,^0 51Testing软件测试网$Z {e kHslJiV6K
`X;G1BT01.Version 版本号
9oa-D2q[|G@051Testing软件测试网Fg"stI
51Testing软件测试网vZ;H K |h-@5U+j
51Testing软件测试网ZC)y ~nZ
The Version clause states whether you are using VERSION 1, VERSION 2, or
$| q:o\I5wA0
ODo-z6|ZvM$U'ET0VERSION 300 of the format. Version 300, introduced with Mapinfo 3.0, allows51Testing软件测试网*E9dw-_m%_:vny
5d'Is0Jp*Q\,DX7[rS C0multiple-section polyline objects.
7U&[_"b)H,X$phm0
!u`2q@8T0“Version”说明你使用的MIF格式的版本(VERSION 1, VERSION 2, VERSION 300中的一种)。Version 300,引自Mapinfo 3.0,允许形容由多段组成的折线对象。
-o+m!I|!B6Z4z?051Testing软件测试网4L tT+n2h VH~9z1M1[
51Testing软件测试网6h5F'hb7hR2b;ZE
51Testing软件测试网{)T]/?$I[8Gb
2.Charset 字符集
ND%u{ zx [O051Testing软件测试网vl)Gz0z&?o;M
3qS#\/qB2l0
6]?1Q_y0The Charset clause specifies which character set was used to create text in51Testing软件测试网0B~1gM1Uh
51Testing软件测试网5M~;`'IYSj
the table. For example: Specify "WindowsLatin1" to indicate that the file was
)h!G^ a/I&x#ng4cc0
3ders#~0created using the Windows US & Western Europe character set; specify51Testing软件测试网z+P0^VJ @d
51Testing软件测试网+d$V6so C3Mj
"MacRoman" to specify the Macintosh US & Western Europe character set; or51Testing软件测试网Nqf+m$Y_Dp
51Testing软件测试网 cwI#t'f
specify "Neutral" to avoid converting the text into another character set.51Testing软件测试网 b)e wJ+b
51Testing软件测试网v y0? |!zL
If you are not using one of these character sets, you can determine the
'R [c#@g \^051Testing软件测试网)WM-b2Wf:OP`
correct syntax for your character set by exporting a table and examining the
jlBC#A%d8Y csfq Ey0
3d(N GUe0.MIF file in a text editor.51Testing软件测试网;ZH*K/OpS
!zSjIb0“Charset”指定表(此处还不知道是哪一个表)中创建文本所使用的字符集。比如说:"WindowsLatin1"说明文件使用的是the Windows US & Western Europe字符集;"MacRoman"说明文件使用的是the Macintosh US & Western Europe字符集;或者,注明"Neutral"是为了防止将文本转成了另外的字符集。如果你没有使用其中任何一个字符集,你可以通过exporting a table和examining the .MIF file in a text editor为你的字符集指定正确的语法。51Testing软件测试网? e X/z,@q,U
51Testing软件测试网 p*Wy F[K9B z
51Testing软件测试网3[ ?#T{H ?
D m]&JCB,lp ?g`D6N$[03.Delimiter 分隔符51Testing软件测试网)\:[%z [W@8Cf;P)M
2fn0e X0K J(o.V&?g0Specify the delimiting character in quotation marks, for example:51Testing软件测试网&|,b([2S@rk8x `$G
51Testing软件测试网6y-`O h F%Lou
指定引号(即""或者'')之间的分隔符,比如说:51Testing软件测试网Tx'HyN\Y a
51Testing软件测试网k0Zj#^kS
p8O&x5Pht0
gq/SAg0DELIMITER ";"51Testing软件测试网 a)O H}zQ
51Testing软件测试网`(f%uZv`
8IM)G _.N.w0
+E{} eC|9EcL/o0The default delimiter is Tab; if you are using the default, you do not need51Testing软件测试网c,Vj6FS#c A7Mo P\v
@8_qy Y0the DELIMITER line.51Testing软件测试网 Ybtu8O$nH
51Testing软件测试网5I z0t+T.H-Z
默认的分隔符是Tab;如果你使用的是默认分隔符,你不需要“DELIMITER”这一行。51Testing软件测试网:OA!O]I*J2Tuv
5p8XjN @f0
d}L&@l0
9i;]o%aw8G-_.x04.Unique
;MF'Y|N7|"z!\j0
UF(K|5T6x%v-J6L0
_w&q&{aj"e+Gc0
%^;lY%Qc W([z3EP:b0Specify a number. This number refers to a database column; 3 is the third
({k~F%t;\@"Zgo0
Ku6Pi)u&_9v!w c0column, 7 is the seventh column, and so forth. What happens to column in the51Testing软件测试网;\g3a+n\'k^
BO5}6e/B'DPW0UNIQUE list is subtle. For example, imagine that you have a database with51Testing软件测试网 Zm9V/DiP
51Testing软件测试网Rs)?:r4j#d
highways in it. Each highway has only one name, but it might be represented51Testing软件测试网+{4M7^#nZf7l
51Testing软件测试网xl8n&|+a*y ?cr
by several segments. You would put the NAME column in the UNIQUE list, while51Testing软件测试网JE3jej_U
x-vJ*C cwf0the column containing data for the individual segments would not be in that51Testing软件测试网}2\ ~#` j#\
51Testing软件测试网.IRp-K.vs\&T
list. This has the effect of creating two related tables; one with names,
"R%bwTyM2F051Testing软件测试网P x\f7^
and one with the other attributes of the objects. This is how MapInfo's
*\s#pq ?AET"f0
)x+X2m(uK;N0various street maps (StreetInfo) are prepared.51Testing软件测试网WmY5dG{ v
2DpE#kb!FQ hl ?-V7W0指定一个数字。这个数字指定一个数据库的列;3是第三列,7是第七列,以此类推。发生在UNIQUE指定的列上的事情是微妙的。比如说,想象一下你建立一个高速公路的数据库。每一条路都只有一个名字,但是在每一路段中都会把名字重写一遍。这时你会把NAME这一列放在一个单独的表中,而包含每个路段的信息的其他列不会放在那个表中。这样就可以创建两个相关的表格:一个NAME表,一个包含其他信息。This is how MapInfo's various street maps(StreetInfo) are prepared.(这句不会翻译)51Testing软件测试网ckt!i4_B:L
51Testing软件测试网+\Rdk4v6Moc`
zq~ cw051Testing软件测试网jX,ZE[ x%{
5.Index 索引
B;f h#Yibcec051Testing软件测试网0]q6Y0Ai0[,GUp:E*s&j!w
51Testing软件测试网*BWr/y6[ aiO
51Testing软件测试网_\VDZ6}
To indicate that columns in the table are indexed, include a number (or a51Testing软件测试网L6p"r4~ ~F\2L4[
u{4R0uu,r0comma-separated list of numbers) in the Index clause. Each number refers to
?#[2Oz*S%V ]2}(r L0
V Pj^wI8Fc7Y0a database column; 3 is the third column, 7 is the seventh column, and so
4o+a;Z+n)EV0
-mV i_a NZ,ku0forth. Columns in the INDEX list will have indexes prepared for them.51Testing软件测试网"t!Q$@x;g_ N3L(C
^+i\8q4`0Ot!hu'D0“Index”指明表中已经建立索引(什么?你不知道什么是索引?自己查阅大学课本)的列,“INDEX”项包括一个数字(或者一系列数字)。每一个数字指定一个数据库的列;3是第三列,7是第七列,以此类推。在“INDEX”表中指定的列会建立索引。
rn4o4}y051Testing软件测试网 {$g:}1G-I5c:r B9~ }E1R
g{ z\8{3H0
BwCwO`06.CoordSys
&o2eat6ZU7~051Testing软件测试网!^iSQc w
51Testing软件测试网6aDoHJE @\h
rRqm? { k0Specify the COORDSYS clause to note that the data is not stored in
&V*MF"S6I+p"~n`K}051Testing软件测试网1?!RyZb'r.G
longitude/latitude(经/纬) form. When no COORDSYS clause is specified, data is51Testing软件测试网'LcUT9?eH
51Testing软件测试网;v9T2L/v0J l },C:H
assumed to be stored in longitude/latitude forms. All coordinates are stored
IDp2k\*N$`+s051Testing软件测试网hu0D!b:MgP
with respect to the northeast quadrant. The coordinates for points in the51Testing软件测试网S YA]1az a.yq,f{6q
V6M)W+[.\6CnS/|X0United States have a negative X while coordinates for points in Europe (eastof Greenwich) have a positive X .coordinates for points in the Northern51Testing软件测试网OQnk8S c!i d
[s&cB.I't oO'M,?0hemisphere have a positive Y while coordinates for points in the Southern
wdPW M.p3w051Testing软件测试网6]Rk!Sd(C
hemisphere have a negative Y. 51Testing软件测试网0hX3X?!NEP Sb
u9GWA8A4q4a.v fC [0指定“COORDSYS”项表示数据不是以经纬度的形式存储的。当没有指定“COORDSYS”这一项时,数据被认为是以经纬度的方式存储。All coordinates are stored with respectto the northeast quadrant.(这句话不知道怎么翻译)。 在美国的点的x坐标为负而在欧洲的点(Greenwich以东)的坐标为正。在北半球的点的y坐标为正而在南半球的点的坐标为负。51Testing软件测试网0O6wby a:O
VX$YFy+rp0
D,n'o'n'Lm)XB051Testing软件测试网:B8C6^^Aq
Syntax 1: (不大懂,最好找两个例子)
.Y;g0[2T+D!_:N7q051Testing软件测试网f5z2k't(n4_u
(d Q/?7P*A051Testing软件测试网-e4{(Z3f3[4pM
CoordSys Earth
"TST U3?2U.z#nvD0
F{g;b!E;pO(lO#}.^K0[ Projection type,
{9f-t:{PnSk0
*e:V$bQ+E/U/x0datum, 51Testing软件测试网:g%\;YR,cH"lV@;\u
51Testing软件测试网1[ L q)W1c.\V
unitname51Testing软件测试网4l9Z0Z.]5qb:IuT,k
51Testing软件测试网6UA7Y5Bm:J_O~7C
[,origin_longtitude ]
V:P0yh6n051Testing软件测试网y$vA!K@0dld
[,origin_lattitude ]51Testing软件测试网wPI CVh
51Testing软件测试网3h;v4e:nvF
[,standard_parallel_1
N Owi#P0M051Testing软件测试网_3A%j@Ub7F"q
[,standard_parallel_2]]
1x:AY3ou|6n G0
J0]w+w:X'?+\0[,azimuth ] 51Testing软件测试网*p0J$`q#H8YdB9d1F8T8A
51Testing软件测试网w C~q'D/[l:S
[,scale_factor ]
k~|9z.WYBn L` S051Testing软件测试网8SMz V N!Uv8s h
[,false_easting ]
*f\)t6G;s(Jp051Testing软件测试网2R)c/D?@d9]5Um:_
[,false_northing]
F*u9TX Hv]8~x051Testing软件测试网Gh1`8PX"] E
[,range ]] 51Testing软件测试网-E0_\4hD&m.\;X D1h
51Testing软件测试网uy,AZ%S&r/E8l
[ Bounds (minx,miny) (maxx,maxy) ]51Testing软件测试网:kE4J+Jm&~
51Testing软件测试网J*nUXo5]Vyw)[
51Testing软件测试网(@i&N:\JL1}@
51Testing软件测试网z1ALe7k5u+n
Syntax 2: 51Testing软件测试网P"Na&|.dJ
q{)Sj9k~N(z0p8BH0
2S4o7BF%^oh0
)Qo-`xz3{H0CoordSys Nonearth
*qS:u3q$W"k~_0
DvK vl1|e0Units unitname
4F;k9`u @'s `0
!b7k(@D o^0Bounds (minx,miny) (maxx,maxy)
8?%I6}3k0m&V1BZ0
"V/pl#o1{w"|1t(T3F"z$X0下面是我对“Syntax 2”的理解:
'~(]8gh/c:F1a gb|0
v(e~I,a0<!--[if !vml]--><!--[endif]-->
E;Fb6\;X?0
-t!j|9St8` t0 51Testing软件测试网o!Ze-U3W)m
51Testing软件测试网\6@7|P R8pTbx
7.Transform 转换51Testing软件测试网$h%Q@Q(}Yq,Q
g4WFU/tU_? k'}&w0
6Q_KOF]'W!p051Testing软件测试网e_T rFo:?
When you have MIF files with coordinates stored with respect to the northwest51Testing软件测试网2~B#GZh[ Q6N
51Testing软件测试网:} m~]v.SK
quadrant (quadrant 2), you can transform them to northeast quadrant
1G ]+r_0^;H051Testing软件测试网.X#t3]5ts&J!~1?
(quadrant 1) with a transform clause.
\_\,V"V0cA{R)C.T0
0C)UG"f3Z.[!l0你可以通过“Transform”实现地理元素的坐标转换。(这句话是我自己的理解,并没有按原文翻译)
WD^0q"Y8G%icT:Hm051Testing软件测试网D*u.e6do
!gr:qR4q051Testing软件测试网].H6w;}T],Yw.f
--------------------------------------------51Testing软件测试网f dT-V9j1HH/w'u
3z;S/@+W5w0| Quadrant 2: | Quadrant 1: |
r(`\ap U&r"n#U0
x2bH,{#_0| Nortwest Quadrant | Norteast Quadrant |51Testing软件测试网9acHh8o
||2N C F W R]T0`0--------------------------------------------51Testing软件测试网i]]U:`
51Testing软件测试网y;_)X4lh
| Quadrant 3: | Quadrant 4: |51Testing软件测试网;fH;oP9Wk)nU r
51Testing软件测试网a[ V!@"zWx
| Southwest Quadrant | Southeast Quadrant |51Testing软件测试网2I2EF_4\II
51Testing软件测试网7V3I,I&FhrV/z
--------------------------------------------
q5PG-[z8w_051Testing软件测试网^`-k"Ch6V9|HT
+zJ3Mdoo"`\0
]!a-]*A|o Q0The transofrm clause has the following syntax: 51Testing软件测试网8IAy }r[q
51Testing软件测试网V+bd5u yI
“Transform”的用法如下:
PG6||lm051Testing软件测试网Z+M8o2`8?Y;z`
TRANSFORM Xmultiplier, Ymultiplier, Xdisplacement, Ydisplacement 51Testing软件测试网5G5H%Jhu @;cjL%X
51Testing软件测试网3|z.G[4u;t pm;g"W
pT ~,n+i0
o:AWYSF0To transform quadrant 2 data into quadrant 1 data, use the following51Testing软件测试网C)z\B4~(`T
w*m~5]r1r"w r0transform clause:
*XBklG5B]/^0
*mW0iH*g}1A"u1]0如果想把第2象限的数据转换到第一象限,可以像如下使用“Transform”:51Testing软件测试网s+K_ F[ejH;S aa
51Testing软件测试网 ]nWwv
51Testing软件测试网l9n8j%Fb/eX7i
51Testing软件测试网7j.I;P@ Z(v AUR
TRANSFORM -1,0,0,0
r1{ hR#s`.s051Testing软件测试网F-C t;zz[4j
]bxbd6R+y2Xl&S]4M051Testing软件测试网0CtHEQ1Dj
The zeroes instruct MapInfo to ignore that parameter.
Y"q0|%Ve6@8_0
8y4DQ)@2DxD00告诉MapInfo忽略那一项:51Testing软件测试网+kBY-t B_,Q:|
51Testing软件测试网+V5@k+EDkS
$D n~${'X3?0
+TT9h6~!wCD&{&o7k0When you have an application which creates MIF files in quadrant 2, you can: 51Testing软件测试网-B)kNc(}
51Testing软件测试网'jj M A(C;HuzH\
当你的程序在第二象限创建MIF文件,你可以:51Testing软件测试网)^ ^m/|4IN,UF2o
51Testing软件测试网K,[]YdBh
Add the TRANSFORM clause to the MIF files51Testing软件测试网/xf Zl1Z#i&J
51Testing软件测试网5O+{I2PR8aSn8]W
Change the application so that it creates coordinates in quadrant 1
"xfe A[(_*r0
1];q}8?#bC0Change the application so that it adds a TRANSFORM clause to the MIF Files51Testing软件测试网9dS-_f c
(mbSPT0
_t(d(E5d p051Testing软件测试网`}4A1o7@s[r5rr
8.Columns 列
*z;WB/dju(b0E W'_b0
*H h}-A/B DV/Y0
:QBGw L!a|:~_051Testing软件测试网~}M@&dl2~*P
Specify the number of column. Then, for each column, create a row containing51Testing软件测试网B8\IVV Xy(v2c$B5Na
9XFk*L l4\'K0the column name, the column type, and, for character and decimal columns, a51Testing软件测试网A/m9VjD2]-\
51Testing软件测试网{jo#v"}MN}e
number to indicate the width of the field. Valid column types are:
&j P6dC,m/LvqG0
p qJM*AzFd0指定列数。然后,为每一列,建立一行(包括the column name、the column type、一个用来指定域长度的数字--仅为character和decimal类型的列建立)用来说明其格式。有效的列类型包括:51Testing软件测试网(v6nZ&lh'T
51Testing软件测试网6z0N]j^i/z
51Testing软件测试网3c {f4d A/D X
51Testing软件测试网b;TS n] KJ Q9b X3u O
char(width)
g n B3xS%p/_8I5SA"O0
"i!s k^$S0integer [说明:which is 4 bytes, from -2^31 to 2^31-1]
0`$}j;fs6O%M-{V ?*j0
'h-B*Uh,zZ0smallint [说明:which is 2 bytes, so it can only store numbers between -32767 and +32767)]51Testing软件测试网9Y7oZc7x|
51Testing软件测试网B SF7B,cA){R
decimal (width, decimals)51Testing软件测试网%g;r F3L dTmj#H
+{0hTS!qw*u0float
J/h6?Sj2Y/M/O0
A\c A2U Bm0date
%D"],x!By%]o051Testing软件测试网)~Ze$g_
logical
~ _?NR'OEz$q@"X3B0
This is an example of the columns section of the header:51Testing软件测试网Z$l5`3}-t&A'u8?-a
下面是mif文件头的COLUMNS部分的一个例子:
STATE char (15) 51Testing软件测试网kX,l%vSp3@
POPULATION integer
5Xi+r)thv0AREA decimal (8,4) 51Testing软件测试网J.{L\+U9n:_S0w)V4R
For the database specified in this header, the MID file has three columns:
cJ6zLJ.h4wW7\"i0通过上面指定的数据库,我们知道对应的MID文件有三列:
a 15 character field that represents the STATE column,51Testing软件测试网;Odp#s9Q
an integer field that represents the POPULATION column,
:T:{:l;@^.@*yc!X0an AREA column that consists of a decimal field with up to 8 total
RU^4Ou.\.I,H0and 4 character after the decimal.
9Ta&u(I8r Q&fU0列名 列类型
STATE char(15) 15位长的字符串
POPULATION INTGER 整型
AREA decimal(8,4)一个最长8位、小数点后有4位的小数
=================MIF DATA SECTION======================
The data section of the MIF file follows the header and must be introduced
AyzBmkF3z0with DATA on a single line:
#Cu _5\4~7i)BK0MIF文件的“data”部分紧跟着文件头并且必须由一个单行“DATA”引出:
DATA
:U.H9A+O0T$I0The data section of the MIF file can have any number of graphical primitives,51Testing软件测试网lmw[r"?
one for each graphic object. MapInfo matches up entries in the MIF and MID51Testing软件测试网.\:~5IFg2c"K
files, associating the first object in the MIF file with the first row in the51Testing软件测试网;N J:_lkq!?
MID file, the second object in the MIF file with the second row in the MID51Testing软件测试网7R2G1U$iz)X[-p!?
file, and so on.
~x[t'g4Hb0MIF文件的数据部分可以包括任意长度的图形变量,其中每一项对映着一个图形对象。MapInfo自动使MIF和MID文件里面的每一条相一致,比如说:MIF文件的第一个object对应着MID文件的第一行,MIF文件的第二个object对应着MID文件的第二行。
When there is no graphic object corresponding to a particular row in the MID51Testing软件测试网P)XB'{0HV;o
file, a "blank" object (NONE) must be written as a place holder in the
%z$r'n9tu\-o^N0corresponding place in the MIF file. 51Testing软件测试网 W Z F6}$HP:q!A
当MIF文件中没有图形对象与MID文件的行对应时,一个“blank”对象必须写在MIF文件中相应的位置。
NONE
P`P M4\Z&W0The graphical objects that can be specified are:
TiM"z XS4tD G0图形对象可以被指定为如下几种类型:
point //点51Testing软件测试网.OPY`)Bx"c;r
line //线51Testing软件测试网Y:[5y7f$v#i
polyline //折线51Testing软件测试网CE MSB'tB
region //区域51Testing软件测试网+]-c(V`z4a.A
arc //弧
/J*Xx7J7[ d0text //文本51Testing软件测试网)Z tn~#}#is"vRI aM!v
rectangle //矩形
H'X#X&rO@iU!j3v0rounded rectangle //圆矩(即4个角做“钝化”处理的矩形)
7^!i O~ o0ellipse //椭圆
/Q)h,HYH0(下面是针对每一种类型的说明,很简单,我就不翻译了)
--------point---------
A point object takes two parameters; an X coordinate and a Y coordinate. As an
6ZGg*r@RGQ0option, specify the symbol that represents the point. Symbols are designated51Testing软件测试网_QpZE\
by numbers. If you omit the SYMBOL clause, the current symbol is used.
$[l oNr6[9N7[,]0POINT x y
!h2_E(R%H3t%Z-`]0[ SYMBOL (shape, color, size) ]51Testing软件测试网w @AG}
MapInfo 4.0 also supports two variations on the SYMBOL clause; see Symbol