KML以错误的地理区域开头 [英] KML opens with the wrong geoposition
问题描述
我正在尝试在Fusional Tables中创建斯德哥尔摩地铁线的地图. 在Fusion Tables中,我创建了一个地图,其中每个站点都有地理位置:
我想将它们连接到折线. 用于在其中的表中创建折线和路的选项,或者它们隐藏得很好. 因此,我创建了这个KML文件并将其加载到表格中:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Stockholms T-bana</name>
<description>Karta över röda linjen i Stockholms T-bana</description>
<Style id="redLine">
<LineStyle>
<color>FF0000</color>
<width>2</width>
</LineStyle>
</Style>
<Placemark>
<name>Röda linje</name>
<description>T-bana linje</description>
<styleUrl>#redLine</styleUrl>
<LineString>
<tessellate>1</tessellate>
<altitudeMode>absolute</altitudeMode>
<coordinates>59.330947,18.059263,2357
59.335258,18.074055,2357
59.343169,18.081243,2357
59.345826,18.071712,2357
59.365568,18.054891,2357
59.381508,18.036516,2357
59.392019,18.041697,2357
59.398709,18.03622,2357
59.338683,18.091242,2357
59.347202,18.098793,2357
59.357298,18.102218,2357
59.32316,18.06762,2357
59.319309,18.072295,2357
59.316958,18.063308,2357
59.317778,18.050152,2357
59.316057,18.033714,2357</coordinates>
</LineString>
</Placemark>
</Document>
</kml>
在表格中创建的地图顽固地在阿拉伯海中打开,但在斯德哥尔摩中未打开. https://www.google.com/fusiontables/data?docid = 1trp44L7vNDqPVDmTr1yXmGUpBvS7_U6R0MnBsS4#map:id = 3 我怎么了还有其他方法可以在对象之间的表中创建折线吗?
您的坐标向后. KML坐标是经度,纬度和高度.
瑞典: https://maps.google.com/maps?q=59,18&hl=zh-CN&sll=18,59&sspn=61.939621,78.046875&t=m&z=16
阿拉伯海: https://maps.google.com/maps?q=18,59&hl=zh-CN&sll=18,59&sspn=61.939621,78.046875&t=m&z=16
I'm trying to create a map of the Stockholm's subway lines in Fusional Tables. In the Fusion Tables I created a map with geo each station:
I want to connect them to the polyline. Options to create polylines and way in the tables there, or they are very well hidden. So I created this KML file and loaded into tables:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Stockholms T-bana</name>
<description>Karta över röda linjen i Stockholms T-bana</description>
<Style id="redLine">
<LineStyle>
<color>FF0000</color>
<width>2</width>
</LineStyle>
</Style>
<Placemark>
<name>Röda linje</name>
<description>T-bana linje</description>
<styleUrl>#redLine</styleUrl>
<LineString>
<tessellate>1</tessellate>
<altitudeMode>absolute</altitudeMode>
<coordinates>59.330947,18.059263,2357
59.335258,18.074055,2357
59.343169,18.081243,2357
59.345826,18.071712,2357
59.365568,18.054891,2357
59.381508,18.036516,2357
59.392019,18.041697,2357
59.398709,18.03622,2357
59.338683,18.091242,2357
59.347202,18.098793,2357
59.357298,18.102218,2357
59.32316,18.06762,2357
59.319309,18.072295,2357
59.316958,18.063308,2357
59.317778,18.050152,2357
59.316057,18.033714,2357</coordinates>
</LineString>
</Placemark>
</Document>
</kml>
Maps created in the table stubbornly opened in the Arabian Sea but not in Stockholm. https://www.google.com/fusiontables/data?docid=1trp44L7vNDqPVDmTr1yXmGUpBvS7_U6R0MnBsS4#map:id=3 What is my fault? Is there some other way create polylines in tables between objects?
You have the coordinates backwards. KML coordinates are longitude,latitude,altitude.
Sweden: https://maps.google.com/maps?q=59,18&hl=en&sll=18,59&sspn=61.939621,78.046875&t=m&z=16
Arabian Sea: https://maps.google.com/maps?q=18,59&hl=en&sll=18,59&sspn=61.939621,78.046875&t=m&z=16
Your KML with the coordinates corrected
这篇关于KML以错误的地理区域开头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!