简体   繁体   English

链接Google地球中折线段的MS Excel纬度/经度点

[英]link MS Excel Latitude/Longitude points for polyline segments in Google Earth

I have an MS Excel spreadsheet with sets of Longitude/Latitude points for Start and End points for segments of residential streets. 我有一个MS Excel电子表格,其中包含住宅街道段的起点和终点的经度/纬度点数。 I would like to see if there is a way to create a link from the Longitude/Latitude points to Google Earth, and ideally have the line segments drawn in a custom format? 我想看看是否有办法创建从经度/纬度点到Google地球的链接,理想情况下是以自定义格式绘制线段?

I DID try something yesterday that worked somewhat for one segment, YES it came from this site, but to do the same thing for a spreadsheet (numerous values) would be non-practical (constant editing of text/HTML string). 我尝试了昨天在某一段有用的东西,是的,它是来自这个网站,但为电子表格(多个值)做同样的事情是不实际的(不断编辑文本/ HTML字符串)。

Other issue: YES I MAY BE ABLE TO FIGURE this out in MS Excel, but I have a gut feeling I'd need to put the Lon/Lat values for each point in one field (duh, merge two fields into one), but if there is a quick way to do that in order to create a link that would be nice to know as well. 其他问题:是的,我可以在MS Excel中对此进行计算,但我有一种直觉,我需要将每个点的Lon / Lat值放在一个字段中(duh,将两个字段合并为一个),但是如果有一个快速的方法来创建一个很好知道的链接。 And NO, MS Excel's Help doesn't cover these issues either. 不,MS Excel的帮助也不包括这些问题。

The way I've done something similar is to draw a polyline and set its properties in Google Earth. 我做类似事情的方法是绘制折线并在Google地球中设置其属性。 Then save the line to a file/clipboard. 然后将该行保存到文件/剪贴板。 I then use the result as a template. 然后我将结果用作模板。 I just replace the draft coordinates with the dynamic coordinates from Excel (or other application.) I then open the file and it displays in Google Earth. 我只是用Excel(或其他应用程序)中的动态坐标替换草稿坐标。然后我打开文件并在Google Earth中显示。 I use Microsoft Scripting reference/FileSystemObject for file IO. 我使用Microsoft Scripting reference / FileSystemObject作为文件IO。 I forget how I opened the file. 我忘了我是怎么打开文件的。 I think a similar reference with Shell object included. 我认为包含Shell对象的类似参考。 (I usually use VB.Net but I'm positive it works for Excel.) (我通常使用VB.Net但我很肯定它适用于Excel。)

My site (pretty stale) provides a link to a site for some tools I built in Excel that draw polylines from coordinate lists for the Google Transport File System (GTFS) specification. 我的网站 (非常陈旧)为我在Excel中构建的一些工具提供了一个链接,该工具可以从Google传输文件系统(GTFS)规范的坐标列表中绘制折线。 See the ImportExport VBA code. 请参阅ImportExport VBA代码。 Code/tools is/are in public domain. 代码/工具属于公共领域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM