【发布时间】:2017-05-23 22:21:38
【问题描述】:
我在使用 Google 地球时间滑块时遇到问题。我通过 excel 创建了一个 KML 文件,其中包含几个不同的地标。代码的每一行都有每个地标的时间戳。但是,当我在 Google 地球中打开它并使用 Timeslider 时,文件中的每个时间戳都会出现所有地标。
例如,如果我在 KML 文件中有 5 个地标,并且时间戳相隔一小时,那么每个地标都会出现在每个小时,而不仅仅是具有相应时间戳的地标。这有意义吗?
这里是几行 KML 文件的示例
<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<Placemark>
<Style>
<IconStyle>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png</href>
</Icon>
<colorMode>normal</colorMode>
<color>50009614</color>
<TimeStamp>
<when>2017-05-01T09:00:00Z</when>
</TimeStamp>
<name>Location1</name>
<Point>
<coordinates>"Longitude", "Latitude",0</coordinates>
</Point>
<description><![CDATA["Description"]]></description>
</Placemark>
<Placemark>
<Style>
<IconStyle>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png</href>
</Icon>
<colorMode>normal</colorMode>
<color>50009614</color>
<TimeStamp>
<when>2017-05-01T10:00:00Z</when>
</TimeStamp>
<name>Location2</name>
<Point>
<coordinates>"Longitude", "Latitude",0</coordinates>
</Point>
<description><![CDATA["Description"]]></description>
</Placemark>
</Document></kml>
所以在这个例子中,位置 1 和 2 都会出现在 google earth 上,但它们都会出现在 0900 和 1000。而不是只有位置 1 出现在 0900 和只有 2 出现在 1000。
任何帮助将不胜感激
问候
约翰
【问题讨论】:
-
上述 KML 文件格式不正确,无法在 Google 地球中打开。缺少 和 结束标记。
标签: timestamp kml google-earth