Google地球将地标放置在错误的位置

时间:2015-04-06 18:07:00

标签: kml google-earth

我一直在尝试找到我记录的数据的地点标记。 我使用以下KML代码将我的点定位为Placemarks。遗憾的是,这些点被放置在错误的位置。我只是想知道我的KML代码中是否有任何错误。

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns = "http://earth.google.com/kml/2.1">
<Document>
<Style id="icon_id">
 <IconStyle>
<Icon>
   <href>http://maps.google.com/mapfiles/kml/paddle/blu-blank.png</href>
   <scale>1.0</scale>
  </Icon>
 </IconStyle>
</Style>
<Placemark>
  <name>04-02-2015</name>
  <description>Points</description>
  <styleUrl>#icon_id</styleUrl>
  <Point>
   <coordinates>39.6495820075,-79.96055352125</coordinates>
  </Point>
</Placemark>
<Placemark>
  <name>04-02-2015</name>
  <description>Points</description>
  <styleUrl>#icon_id</styleUrl>
  <Point>
   <coordinates>39.649492665,-79.96053303</coordinates>
  </Point>
</Placemark>
</Document>
</kml>

我还尝试在Google地球上手动定位这些点并完美显示位置。但是当我尝试运行KML代码时,它会让我感到困惑。

P.S。这些点应该是在美国的WV,而Google Earth将它放在南极洲的某个地方。

我使用Android LocationManager API记录纬度和经度值。

1 个答案:

答案 0 :(得分:1)

是的,它是地图投影。

我浏览了以下链接https://support.google.com/earth/answer/148110?hl=en,并按照建议使用了http://www.earthpoint.us/Convert.aspx处提供的工具来转换我的坐标并进行了工作。

所做的更改是按照<coordinates>longitude,latitude</coordinates>而不是

的顺序书写 来自Android位置管理器API生成的(纬度,经度)对的

<coordinates>latitude, longitude</coordinates>