How to draw path between placemark

天涯浪子 提交于 2019-12-23 08:48:08

问题


I'm new on kml and do not find the way to create a paths between several placemark (each with some coordinate, a name, description). I checked kml tutos but did not find this.

Any ideas ?


回答1:


create a LineString element with the same coordinates (Longitude, Latitude, Altitude) as your Points.

<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>


来源:https://stackoverflow.com/questions/5492939/how-to-draw-path-between-placemark

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!