两个Google Earth placemarks的连接

发布于 2025-01-23 13:16:47 字数 317 浏览 2 评论 0原文

我已经安装了Google Earth Pro,并添加了几个placemarks(黄色别针)。因此,可以在左树视图中找到这些斑点标记,并且当然包含位置(纬度,经度)。

现在,我想通过“线”/“轨道”连接其中两个,或者您想调用它。因此,这样的轨道应将“引脚a”与“引脚b”相连。或换句话说:如果我移动“引脚A”,那么轨道的点也应更新其位置。

我知道,有多边形/路径函数,但是借助此路径,您为此路径创建了自己的位置(因此它们不是基于/连接在引脚上的)。

有解决这个问题的解决方案吗?我知道有很多问题的主题,但是它们很老,也许不是最新的。也许有人知道Google Earth的官方插件?

I have installed Google Earth Pro and added a couple of placemarks (yellow pins). So these placemarks can be found in the left tree view and contains of course a position (latitude, longitude).

Now, I want to connect two of them by a "line"/"track" or however you want to call it. So, such a track should connect "Pin A" with "Pin B". Or in other words: If I move "Pin A" then the point of the track should update its position as well.

I know, that there is the polygon/path function, but with this you create own positions for this path (so they are not based/connected on the pins).

Are there any solutions for this problem? I know that there are many topics with exactly this question, but they are quite old and maybe not up to date. Maybe someone knows an official plugin for Google Earth?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪我鬧 2025-01-30 13:16:47

简短的答案是否,在Google Earth或KML中没有办法这样做。

您要要求的听起来像拓扑连接,其中一个功能(点和其单个顶点)在拓扑上连接到另一个功能(线路,或者是线路的一个顶点),因此当点移动点时,该行的相应顶点也被移动。 KML无法编码拓扑,因此无法将点的单个顶点“连接”到线顶点,因此在Earth Pro中无法执行此操作。

您可以获得的最接近的是将点和多边形组合到一个“多军仪”中,这使多个几何形状可以生活在一个“ placemark”中。这使您可以做一些事情,例如将一种共享样式应用于所有样式,当鼠标徘徊在其中一个时,将所有连接的几何形状“突出显示”(请参阅​​KML文档中的“突出显示样式”),并共享气球/气球/信息窗口内容。但是几何及其顶点仍然是独立定义的,无法拓扑链接它们。请注意,可以手工或编程编写kml时可以创建此多重计概念(以及自定义的突出显示样式等),但是没有工具可以在地球专业用户界面中创建它们。

拓扑和拓扑连接是更高级的GIS软件包可以处理的事情,因此取决于您想完成的工作,也许会查看QGIS,ArcGIS或类似的内容。

Short answer is no, there's not a way to do this in Google Earth or KML.

What you're asking for sounds like a topological connection, where one feature (the Point and its single vertex) is topologically connected to another feature (the Line, or specifically, one vertex of the Line), so that when the Point is moved, the corresponding vertex of the line is also moved. KML does not have any way to encode topology, so there's no way to "connect" the point's single vertex to a vertex of the line, and therefore there's no way to do this in Earth Pro.

The closest you can get is to combine the point and polygon into a "MultiGeometry", which allows multiple geometries to live within one "Placemark". This lets you to do things like applying one shared style to all of them, having all the connected geometries "highlight" together when the mouse hovers over one of them (see "highlight styles" in the KML docs), and to share balloon/info-window content. But the geometries and their vertices remain independently defined, with no way to link them topologically. Note that this MultiGeometry concept (and custom highlight styles, etc.) can be created when writing KML by hand or programmatically, but there's no tool to create them in the Earth Pro user interface.

Topology and topological connections are something that more advanced GIS packages can handle, so depending on what you want to accomplish, maybe look at QGIS, ArcGIS, or similar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文