gengzi1999
路人甲
路人甲
  • 注册日期2003-09-10
  • 发帖数238
  • QQ
  • 铜币956枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:12365回复:23

[原创]AUTOCAD数据转入MAPGIS

楼主#
更多 发布于:2004-09-10 13:16
<P ><FONT face="Times New Roman"><FONT size=3>  </FONT><B>AUTOCAD</B></FONT><B>的数据输入接口</B><B><p></p></B></P>
<P ><FONT size=3><FONT face="Times New Roman">        </FONT>在将<FONT face="Times New Roman">AUTOCAD</FONT>数据转入<FONT face="Times New Roman">MAPGIS</FONT>时,经常会遇到两边的线型库,颜色库的编码不一致,而且在<FONT face="Times New Roman">AUTOCAD</FONT>中有些图元是以块的形式组成,这样就造成转换后形成“张冠李戴”,有时两边无法对应;另外在转换时还经常需要将<FONT face="Times New Roman">AUTOCAD</FONT>的某层转为<FONT face="Times New Roman">MAPGIS</FONT>的对应层。因此,系统提供了一套对应表文件接口:符号对照表——“<FONT face="Times New Roman">arc_map.pnt”,</FONT>线型对照表——<FONT face="Times New Roman">“arc_map.lin”,</FONT>颜色对照表——<FONT face="Times New Roman">“cad_map.clr”,</FONT>层对照表——<FONT face="Times New Roman">“cad_map.tab”,</FONT>用户编辑生成这些表文件并将其放在系统库目录下,系统成批或单个文件转换时都会按这个表文件的对应情况来自动进行转换。其转换格式如下:</FONT></P>
<P ><FONT size=3>在下面的说明中,斜体部分为文件内容,其余为相应文件说明。</FONT></P>
<P ><FONT size=3>符号对照表:</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">AUTOCAD</FONT>(块名)<FONT face="Times New Roman">                       MAPGIS</FONT>(编码)</FONT></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        W-L                                                  9431<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        718A                                                 9511<p></p></FONT></FONT></I></B></P>
<P ><FONT face="Times New Roman"><B><I><FONT size=3>5261</FONT>                </I></B><B><I><FONT size=3>9531<p></p></FONT></I></B></FONT></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>         …………</FONT></FONT></I></B></P>
<P ><FONT size=3>线型对照表:</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">AUTOCAD</FONT>(线名)<FONT face="Times New Roman">                        MAPGIS</FONT>(编码)</FONT></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>CONTINUOUS                                         2110<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>DASH1                                                      1402<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>DASH4                                                       4320<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>DOT1                                                         1403<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>              ………..</FONT></FONT></I></B></P>
<P ><FONT size=3>颜色对照表:</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">MAPGIS</FONT>(颜色号)<FONT face="Times New Roman">                         AUTOCAD</FONT>(颜色号)</FONT></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        1                                                         10<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        2                                                          4<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        4                                                          2<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        6                                                          1<p></p></FONT></FONT></I></B></P>
<P ><FONT face="Times New Roman"><B><I><FONT size=3>7</FONT>                            </I></B><B><I><FONT size=3>3<p></p></FONT></I></B></FONT></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>        …………</FONT></FONT></I></B></P>
<P ><FONT size=3>层对照表:</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">MAPGIS</FONT>(图层号)<FONT face="Times New Roman">                         AUTOCAD</FONT>(图层名)</FONT></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        0                                                          0<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT size=3><FONT face="Times New Roman">        1                                                          1<p></p></FONT></FONT></I></B></P>
<P ><FONT face="Times New Roman"><B><I><FONT size=3>2</FONT>                            </I></B><B><I><FONT size=3>3<p></p></FONT></I></B></FONT></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>               ……….<p></p></FONT></FONT></I></B></P>
<P ><B><I><FONT face="Times New Roman"><FONT size=3>        255                                                      90</FONT></FONT></I></B></P>
<P ><FONT size=3>注意:<FONT face="Times New Roman">1</FONT>、先将系统库目录设为<FONT face="Times New Roman">\mapgis\suvslib, </FONT>然后在<FONT face="Times New Roman">slib</FONT>目录下编写对照表,</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">                  </FONT>编写完成后将四个对照表复制到<FONT face="Times New Roman"> suvslib</FONT>目录下<FONT face="Times New Roman">(</FONT>或将<FONT face="Times New Roman">slib</FONT>目录下的四个对照表复制到<FONT face="Times New Roman">suvslib)</FONT>,这样就可以进行</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">                  </FONT>转换了。</FONT></P>
<P ><FONT size=3><FONT face="Times New Roman">2</FONT>、在转换过程中要区分大小写。</FONT></P>
<P ><FONT face="Times New Roman" size=3>      </FONT></P>
喜欢0 评分0
我是农民,我怕谁!
游客

返回顶部