lsc202 发表于 2007-5-16 18:01:00

[求助]怎样把文本文件中的坐标值转换成cad中的坐标点

<div style="FONT-SIZE: 14px;"><div style="FONT-SIZE: 14px;"><span class="viewthreadtxt">搞线路勘察经常需要根据gps坐标绘图,可是gps坐标导出来是文本格式的,怎样才能把这些数值转换到cad中去并根据这些数值生成坐标点</div><div style="FONT-SIZE: 14px;">下边是gps导出来的数据,我只列举了其中三个点,格式如下,N后边的数表示北纬多少度,E后边的数表示东京多少度。哪位高手能给编一段程序能够自己读取txt文件中的坐标值,并自动在cad中生成坐标点。<br/>Grid&nbsp; &nbsp; &nbsp; &nbsp; Lat/Lon hddd癿m.mmm'<br/>Datum&nbsp; &nbsp; &nbsp; &nbsp; WGS 84<br/><br/>Header&nbsp; &nbsp; &nbsp; &nbsp; Name&nbsp; &nbsp; &nbsp; &nbsp; Description&nbsp; &nbsp; &nbsp; &nbsp; Type&nbsp; &nbsp; &nbsp; &nbsp; Position&nbsp; &nbsp; &nbsp; &nbsp; Altitude&nbsp; &nbsp; &nbsp; &nbsp; Depth&nbsp; &nbsp; &nbsp; &nbsp; Proximity&nbsp; &nbsp; &nbsp; &nbsp; Display Mode&nbsp; &nbsp; &nbsp; &nbsp; Color&nbsp; &nbsp; &nbsp; &nbsp; Symbol&nbsp; &nbsp; &nbsp; &nbsp; Facility&nbsp; &nbsp; &nbsp; &nbsp; City&nbsp; &nbsp; &nbsp; &nbsp; State&nbsp; &nbsp; &nbsp; &nbsp; Country<br/><br/>Waypoint&nbsp; &nbsp; &nbsp; &nbsp; 0001&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User Waypoint&nbsp; &nbsp; &nbsp; &nbsp; N38 02.632 E114 36.133&nbsp; &nbsp; &nbsp; &nbsp; 245 ft&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Symbol &amp; Name&nbsp; &nbsp; &nbsp; &nbsp; Unknown&nbsp; &nbsp; &nbsp; &nbsp; Waypoint&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/>Waypoint&nbsp; &nbsp; &nbsp; &nbsp; 0002&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User Waypoint&nbsp; &nbsp; &nbsp; &nbsp; N38 02.667 E114 36.124&nbsp; &nbsp; &nbsp; &nbsp; 203 ft&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Symbol &amp; Name&nbsp; &nbsp; &nbsp; &nbsp; Unknown&nbsp; &nbsp; &nbsp; &nbsp; Waypoint&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/>Waypoint&nbsp; &nbsp; &nbsp; &nbsp; 0003&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User Waypoint&nbsp; &nbsp; &nbsp; &nbsp; N38 02.667 E114 36.125&nbsp; &nbsp; &nbsp; &nbsp; 205 ft&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Symbol &amp; Name&nbsp; &nbsp; &nbsp; &nbsp; Unknown&nbsp; &nbsp; &nbsp; &nbsp; Waypoint<br/></div></span></div>

shzhzh123 发表于 2007-5-18 20:15:00

<p>我也想知道</p>

stwzg 发表于 2007-5-20 11:02:00

用GPS带的专用软件即可

lsc202 发表于 2007-5-23 08:25:00

stwzg发表于2007-5-20 11:02:00static/image/common/back.gif用GPS带的专用软件即可

<p>不行啊,我们的gps带的软件只能倒成txt文件,并不能实现我说的功能啊,这位兄弟你如果有这个软件麻烦传上来好吗,拜托了。</p>

yyokman770 发表于 2008-9-27 09:01:00

<p>好像有个快速生成点坐标的下软件吧,以前用过,到网上搜搜看!</p>

itoltall 发表于 2008-11-19 12:39:00

其实要编这个也不是很难,不过都能导成文本格式了,在导入到Excel里编辑一下形成11436.133,3802.632 样式(逗号为半角的),可接复制到CAD里的pline命令后(命令行里)粘贴就能绘出多线了,多线的各端点就是你要的点位!

cmxtmq 发表于 2008-11-24 10:47:00

如果是数量比较大的图形的话,楼上的方法似乎速度上没有什么优势哦!有别的更好的方法吗?

825060779 发表于 2009-3-4 16:05:00

<p>是啊,是啊,</p><p>excel是生成了所有点的坐标,但是数据太多,上千上万,</p><p>而且不是单一的一个动作就完成了,要不断的复制A列的,生成一条曲线,然后又复制B列生成曲线,还要选曲线线形,C列、D列,不同表格的AB列、bc列、或某个单元格、等等,非常多。</p><p>现在就是要把这些所有的动作都一口气,一个动作完成了。</p>

睡不着的猫 发表于 2009-3-10 12:27:00

<p>手输吧,更快</p><p>我用excel,你拿你的数据来,一个小时给你搞定</p>
页: [1]
查看完整版本: [求助]怎样把文本文件中的坐标值转换成cad中的坐标点