【问题标题】:After importing KML to Google Maps, point is showing in Antartica将 KML 导入 Google 地图后,点显示在南极洲
【发布时间】:2012-08-22 20:45:02
【问题描述】:

我正试图找出我做错了什么。

这是我的 KML 的一个非常简单的版本:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>SUNSHINE CHEVRON</name>
<description>HIALEAH</description>
<Point>
    <coordinates>25.872066,-80.282852,0</coordinates>
</Point>
</Placemark>
</kml>

当我尝试创建地图并导入此点时,它会显示在南极洲中。

有什么想法吗?我使用http://kmlvalidator.com/ 验证了文件,它返回时没有错误。

你能告诉我我做错了什么吗?

【问题讨论】:

    标签: xml google-maps kml


    【解决方案1】:

    documentation on coordinates,坐标为经度、纬度、[海拔]

    A single tuple consisting of floating point values for longitude, latitude, 
    and altitude (in that order). Longitude and latitude values are in degrees, 
    where:
    
       longitude ≥ −180 and <= 180
       latitude ≥ −90 and ≤ 90
       altitude values (optional) are in meters above sea level
    

    在描述坐标的三个值之间不要包含空格。

    所以他们应该是:

    <coordinates>-80.282852,25.872066</coordinates>
    

    (假设您想要Florida 中的地标)

    【讨论】:

    • 完全正确。当我翻转纬度和经度并保持 ,0 时,它起作用了。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-11-11
    • 2018-10-16
    • 2014-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-08
    相关资源
    最近更新 更多