[英]Connection of two Google Earth placemarks
I have installed Google Earth Pro and added a couple of placemarks (yellow pins).我已经安装了 Google Earth Pro 并添加了几个地标(黄色别针)。 So these placemarks can be found in the left tree view and contains of course a position (latitude, longitude).
所以这些地标可以在左侧树视图中找到,当然包含 position(纬度、经度)。
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".
所以,这样的轨道应该连接“Pin A”和“Pin B”。 Or in other words: If I move "Pin A" then the point of the track should update its position as well.
或者换句话说:如果我移动“Pin A”,那么轨道的点也应该更新它的 position。
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).我知道,有一个多边形/路径 function,但是您可以为此路径创建自己的位置(因此它们不基于/连接在引脚上)。
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?
也许有人知道 Google 地球的官方插件?
Short answer is no, there's not a way to do this in Google Earth or KML.简短的回答是否定的,在 Google 地球或 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.
KML 无法对拓扑进行编码,因此无法将点的单个顶点“连接”到线的顶点,因此在地球专业版中无法执行此操作。
The closest you can get is to combine the point and polygon into a "MultiGeometry", which allows multiple geometries to live within one "Placemark".您可以获得的最接近的方法是将点和多边形组合成一个“MultiGeometry”,它允许多个几何图形存在于一个“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.
这使您可以执行一些操作,例如将一种共享样式应用于所有这些样式,当鼠标悬停在其中一个几何图形上时让所有连接的几何图形一起“突出显示”(请参阅 KML 文档中的“突出显示样式”),以及共享气球/信息窗口内容。 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.
请注意,此 MultiGeometry 概念(和自定义突出显示 styles 等)可以在手动或以编程方式编写 KML 时创建,但在 Earth Pro 用户界面中没有创建它们的工具。
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.拓扑和拓扑连接是更高级的 GIS 包可以处理的东西,所以根据你想要完成的事情,可以看看 QGIS、ArcGIS 或类似的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.