0

我想读取 android 移动目录(sd 卡)上存在的 KML 文件,我想从该文件中获取信息并将其显示在屏幕上。

这是我拥有的 KML 文件:

<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"          xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
    <Placemark>
        <name>Simple placemark</name>
        <description>Attached to the ground. Intelligently places itself at the
              height of the underlying terrain.</description>    
        <Point>
            <coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
        </Point>
    </Placemark>
  </kml>
4

1 回答 1

2

只需在解析 XML 时解析它。这是我的看法。希望这有帮助:https ://gist.github.com/3163006

于 2012-07-23T10:38:34.040 回答