[英]How to read KML file using java android
I want to read a KML file that exists on the android mobile directory(sd card ) and I want to get the information from this file and display it on the screen. 我想读取Android移动目录(SD卡)上存在的KML文件,我想从该文件中获取信息并将其显示在屏幕上。
this is the KML file that I have : 这是我的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>
Just parse it as you parse XML. 解析XML时解析它。 Here's my take on it.
这是我的看法。 Hope this help: https://gist.github.com/3163006
希望这个帮助: https : //gist.github.com/3163006
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.