【问题标题】:How to draw path between placemark如何在地标之间绘制路径
【发布时间】:2011-03-30 21:57:27
【问题描述】:

我是 kml 新手,找不到在多个地标之间创建路径的方法(每个地标都有一些坐标、名称、描述)。我检查了 kml tutos 但没有找到这个。

有什么想法吗?

【问题讨论】:

标签: kml


【解决方案1】:

创建与您的点具有相同坐标(经度、纬度、高度)的 LineString 元素。

<Folder>
    <description>Frankie likes walking and stopping</description>
    <Placemark id="track1">
        <name>frankies path</name>
        <LineString>
            <coordinates>-46.67,-23.58,100 -46.754,-23.666,100 -46.6616,-23.5632,100 </coordinates>
        </LineString>
    </Placemark>

    <Placemark>
        <name> 2012-05-31 17:23:09</name>
        <description> Stop TIME: 19:25:20 Source: network</description>
        <Point>
            <coordinates>-46.67,-23.58,100 </coordinates>
        </Point>
    </Placemark>
    <Placemark>
        <name> 2012-05-31 17:23:09</name>
        <description> Stop TIME: 03:01:59 Source: gps</description>
        <Point>
            <coordinates>-46.754,-23.666,100 </coordinates>
        </Point>
    </Placemark>
    <Placemark>
        <name> 2012-05-31 17:23:09</name>
        <description> Stop TIME: 02:26:13 Source: network</description>
        <Point>
            <coordinates>-46.6616,-23.5632,100 </coordinates>
        </Point>
    </Placemark>
</Folder>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-08
    • 2016-01-10
    • 1970-01-01
    • 1970-01-01
    • 2023-04-10
    • 1970-01-01
    • 2017-10-03
    • 1970-01-01
    相关资源
    最近更新 更多