如何在地标之间绘制路径

时间:2011-03-30 21:57:28

标签: kml

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

有什么想法吗?

1 个答案:

答案 0 :(得分:10)

使用与您的Points相同的坐标(经度,纬度,海拔高度)创建一个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>