編輯:高級開發
一、KML文件其實是一個XML文件,我們看下KML文件結構
<?XML version="1.0" encoding="UTF-8"?>
<kml XMLns="http://earth.google.com/kml/2.2">
<Document>
<name>1065 Brea Mall, Brea, CA 92821.kml</name>
<StyleMap id="default_copy0+nicon=/School/UploadFiles_7810/201203/20120324192313571.png">
<Pair>
<key>normal</key>
<styleUrl>#default_copy0+icon=/School/UploadFiles_7810/201203/20120324192313524.png</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#default_copy0+icon=/School/UploadFiles_7810/201203/20120324192313240.png</styleUrl>
</Pair>
</StyleMap>
<Style id="default_copy0+icon=/School/UploadFiles_7810/201203/20120324192313240.png">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>/School/UploadFiles_7810/201203/20120324192313240.png</href>
</Icon>
</IconStyle>
<LabelStyle>
<scale>1.1</scale>
</LabelStyle>
</Style>
<Style id="default_copy0+icon=/School/UploadFiles_7810/201203/20120324192313524.png">
<IconStyle>
<Icon>
<href>/School/UploadFiles_7810/201203/20120324192313524.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<name>1065 Brea Mall, Brea, CA 92821</name>
<address>1065 Brea Mall, Brea, CA 92821</address>
<LookAt>
<longitude>-117.883593</longitude>
<latitude>33.916991</latitude>
<altitude>0</altitude>
<range>1000</range>
<tilt>0</tilt>
<heading>0</heading>
</LookAt>
<styleUrl>#default_copy0+nicon=/School/UploadFiles_7810/201203/20120324192313571.png</styleUrl>
<Point>
<coordinates>-117.883593,33.916991,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
二、NMEA協議就是常規的GPS數據,通過串口直接獲取到的,如下
$GPRMC,003347.000,A,3725.3433,N,12205.7920,W,0.08,149.46,061007,,,D*70
$GPRMC,003348.000,A,3725.3433,N,12205.7921,W,0.05,142.51,061007,,,D*7E
$GPRMC,003349.000,A,3725.3432,N,12205.7921,W,0.08,159.56,061007,,,D*7E
$GPRMC,003350.000,A,3725.3432,N,12205.7921,W,0.06,151.59,061007,,,D*7F
$GPRMC,003351.000,A,3725.3432,N,12205.7921,W,0.20,120.57,061007,,,D*72
實例:
解析方法:
RMC = Recommended Minimum Specific GPS/TRANSIT Data
$GPRMC,hhmmss.ss,A,llll.ll,a,yyyyy.yy,a,x.x,x.x,ddmmyy,x.x,a*hh
1 = UTC(universal time, coordinated) of position fix
2 = Data status (A=good, V=navigation receiver warning)
3 = Current Latitude
4 = North/South in Latitude Hemisphere
5 = Current Longitude
6 = East/West in Longitude Hemisphere
7 = Speed over ground in knots
8 = (Direction of travel N:0°, E:90°, S:180°, W:270°)
9 = UT DateStamp
10 = Magnetic variation degrees (Easterly var. subtracts from true course)
11 = East/West
12 = Checksum
android應用程序最初是由Google開發的基於Linux平台的開源手機操作系統。它包括操作系統、用戶界面和應用程序,android 包括了一個核心庫,該核心庫提供
android平台的項目目前正在從手機運營商、手機廠商、開發者和消費者那裡獲得大力的支持,在這期間,很有可能會迎來 android程序的大爆發,畢竟這個系統太強大了。一
; > android Repository: + android SDK Tools, revision 9 + android SDK Platf
android應用廣泛,應用方式靈活,可以在模擬器中進行相應修改實現許多特定的功能需求。我們在這裡就先來了解一下android創建sdcard的具體方法,從中感受一下這