【发布时间】:2017-08-05 10:30:44
【问题描述】:
我编写了一个kml 文件,其中包含名称、描述和坐标的地标。它的结构是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>test</name>
<description><![CDATA[test]]></description>
<Placemark>
<name>name 1</name>
<description>description 1</description>
<Point>
<coordinates>18.70669,36.12645</coordinates>
</Point>
</Placemark>
<Placemark>
<name>name 2</name>
<description>description 2</description>
<Point>
<coordinates>18.70513,36.12698</coordinates>
</Point>
</Placemark>
</Document>
</kml>
我发现连接它们的唯一方法是使用<MultiGeometry><LineString><coordinates>,但我正在寻找更智能、更小的解决方案。
也可以接受 python 脚本作为解决方案。
【问题讨论】:
-
为什么不能直接使用
<MultiGeometry><LineString><coordinates>?
标签: python google-maps maps line kml