阅读:13311回复:23
[原创]AUTOCAD数据转入MAPGIS
<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> |
|
|
1楼#
发布于:2009-11-02 20:58
<img src="images/post/smile/dvbbs/em01.gif" /><img src="images/post/smile/dvbbs/em04.gif" />
|
|
2楼#
发布于:2009-05-09 10:28
<img src="images/post/smile/dvbbs/em08.gif" />
|
|
3楼#
发布于:2008-01-05 21:25
学而时习之<img src="images/post/smile/dvbbs/em04.gif" />
|
|
4楼#
发布于:2007-08-19 18:01
<P>最好是直接开发,用AUTOMAP建立好TOPO及属性表,再转为E00,根据代码及图层赋mapgis的符号,建立属性表、TOPO。或直接用MAPGIS函数重画对象,建立属性表及TOPO。优势转换快,又不丢信息。</P>
|
|
5楼#
发布于:2007-07-21 16:44
<img src="images/post/smile/dvbbs/em02.gif" />
|
|
6楼#
发布于:2007-06-26 13:10
为什么不上传一个完整的文件给大家呢
|
|
7楼#
发布于:2006-07-29 20:12
<P>还是不太清楚呀</P>
|
|
8楼#
发布于:2006-06-19 16:05
mapgis的SLID文件夹中有三个文件:arc_map.lin_cass;arc_map.pnt_cass;cad_map.tab_cass,把它们复制到SuvSlib,去掉-CASS的后缀,就能生成CASS到MAPGIS的对照文件
|
|
9楼#
发布于:2005-11-19 20:17
<P>这个可以根据用户需要,自行做个接口转换程序,将CAD中的对象与MAPGIS中的对象一一对应</P>
<P>同理,转到CAD中时也将MAPGIS的对象一一与之对应,重新生成图形即可,如有专业需求的客户</P> <P>可联系我 rgis@sina.com</P> |
|
|
上一页
下一页