乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 35|回复: 13

[编程交流] Lat, Long csv

[复制链接]

3

主题

12

帖子

9

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 10:22:49 | 显示全部楼层 |阅读模式
Hi,
 
I have a csv file that has let,long,meters and was wondering how to import it.
 
I'm thinking there would be a script that would read it in the csv and show the lat long and meters.
 
Been searching a bit now, it seems to be quite complicated. Using Autocad Architecture 2010.
回复

使用道具 举报

6

主题

249

帖子

247

银币

初来乍到

Rank: 1

铜币
30
发表于 2022-7-6 10:31:16 | 显示全部楼层
Please post a couple lines of your csv file here and I'll try to find something in my toolbox that may help the import.
Is the latitude data north or south of the equator?  (meaning does it contain the correct + or - prefix)
Steve
回复

使用道具 举报

6

主题

249

帖子

247

银币

初来乍到

Rank: 1

铜币
30
发表于 2022-7-6 10:34:05 | 显示全部楼层
 
This may help:
http://www.cadtutor.net/forum/showthread.php?42954-Point-Manager&highlight=ptmanager
回复

使用道具 举报

3

主题

12

帖子

9

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 10:37:34 | 显示全部楼层
Lat        Lon        Elev.(meters)
-28.04415        145.94878        195
-28.1118        145.8129        190
-28.07695        145.81922        189
-28.1774        145.80974        188
-28.0708        145.87768        191
-28.0626        145.8208        192
-28.2102        145.8524        192
-28.1159        145.8998        191
-28.1979        145.89664        184
-28.2184        145.92666        185
-28.1938        145.85714        190
-28.0421        145.80658        194
-28.2143        145.83344        185
-28.09335        145.92508        192
-28.1282        145.84766        189
-28.20815        145.85082        187
-28.17125        145.88874        186
-28.1159        145.93298        192
-28.0708        145.8287        191
-28.11795        145.95352        188
-28.2348        145.91244        196
-28.0421        145.88242        192
-28.2266        145.83818        184
-28.08105        145.8998        192
-28.1692        145.85398        186
-28.1118        145.95036        189
-28.05235        145.8998        192
-28.08105        145.90296        192
-28.16715        145.81606        185
-28.1733        145.88558        186
-28.07695        145.95352        191
-28.1487        145.88558        188
-28.1774        145.8287        185
-28.1815        145.81606        188
-28.24095        145.83028        183
-28.0708        145.95036        194
-28.15895        145.8129        187
 
 
 
 
回复

使用道具 举报

3

主题

12

帖子

9

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 10:45:06 | 显示全部楼层
Oh yeah stevesfr, it looks like that link to the pt manager might just be the thing. Didn't mean to think that I should search for xyz !
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 10:49:06 | 显示全部楼层
Thanks for the recommendation Steve - I believe my program will work with any combination of xyz, but I've never worked with Lat/Long so I'm not sure if there is a conversion needed somewhere along the line.
回复

使用道具 举报

8

主题

1133

帖子

1164

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 10:52:17 | 显示全部楼层
What some folk do not seem to realise is that Latitude and Longitude refer to a sphere, and one degree in Latitude does not equal the same distance as one degree in Longitude, except at the Equator. One degree in Latitude at the Equator is about 111km, but at the Poles it is zero length, but is still one degree. So it varies, but not evenly because it is going round a sphere. And then the Earth is not a regular sphere, it is an oblate spheroid. There is no way that ordinary AutoCAD can deal with these coordinates. You have to go for Civil 3D or something with geographic capabilities which has the complicated calculations built in.
 
If you merely convert the Latitude and Longitude figures to a decimal and plot those, the result is a complete nonsense.
 
Perhaps a bit of reading from a web search will help to convince you that the process is not simple
回复

使用道具 举报

6

主题

249

帖子

247

银币

初来乍到

Rank: 1

铜币
30
发表于 2022-7-6 10:58:18 | 显示全部楼层
 
I certainly agree with your statements. However, If all the Lat-Long data is from a relatively small area as opposed to hundreds of miles or kilometers, then the error isn't significant.  For example if one were to map data of good fishing locations on a small body of water, then plotting this data (without correction) on a map of the lake is close enough and darn near perfect. The correction would probably be out in the dozens of decimal places.
There are programs which will make corrections to the data, given the "center" Lat-Long of your data.  One I can think of is CORPSCON or something like that.
回复

使用道具 举报

8

主题

1133

帖子

1164

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 11:00:01 | 显示全部楼层
 
If the lake were near the Equator, then I would agree. Otherwise the horizontal distortion is more than the correction that you are quoting.
 
I find that for small quantities of data, then Google Earth is perfect
回复

使用道具 举报

3

主题

12

帖子

9

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 11:07:04 | 显示全部楼层
Oh yeah, cool thanks, yes, I can see your issue eldon, stevefr I'll look up and see what error difference it makes. What is Civil 3d?
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-5 15:45 , Processed in 0.762795 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表