[移動感測] 將指定站點的資料顯示在Google地圖上

編輯歷史

時間 作者 版本
2016-04-20 08:22 Shih-Ying Hsu r8
顯示 diff
(51 行未修改)
*pip install simplekml
安裝 matplotlib
- *pip install matplotlib
+ *pip install simplekml
*安裝的過程會將 numpy 一起裝好
(26 行未修改)
2016-03-15 05:26 Mr. Orange (橘子先生) r7
顯示 diff
(7 行未修改)
*安裝函式庫
*paho-mqtt
- *simplekmlhttps://www.google.com/maps/d/
+ *simplekml
*matplotlib
*numpy
(70 行未修改)
2016-03-13 06:49 陳翗 r6
顯示 diff
(7 行未修改)
*安裝函式庫
*paho-mqtt
- *simplekml
+ *simplekmlhttps://www.google.com/maps/d/
*matplotlib
*numpy
(70 行未修改)
2016-03-01 01:20 – 01:24 Mr. Orange (橘子先生) r1 – r5
顯示 diff
- Untitled
+ [移動感測] 將指定站點的資料顯示在Google地圖上
+ *目的:
+ 取得指定日期,指定站點的資料,並顯示在 google 地圖上
+ 這個例子是取得 2/28日 FT1_034 的感測資料
- This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
+ *安裝步驟
+ *取得感測資料
+ *安裝函式庫
+ *paho-mqtt
+ *simplekml
+ *matplotlib
+ *numpy
+ *執行 lass.py python 程式
+ *lass.py
+ *匯出 kml
+ *顯示在 Google 我的地圖上
+ *匯入 kml
+
+ *取得資料
+
+ 從 FTP 站台取得所有站點的資料 :
+ 須注意伺服器是在14:27分 儲存 log
+ 所以 data.log-20160228 取得的資料區間為 2/27 14:27 ~ 2/28 14:27
+ 所以必須合併 data.log-20160229 的資料
+ 才可以得到完整一整天的資料
+
+ 如果想取得當日的感測資料,則是在瀏覽器輸入
+ *ftp://gpssensor.ddns.net:2121/data.log
+
+ 直接用瀏覽器開啟這兩個網頁
+ *ftp://gpssensor.ddns.net:2121/data.log-20160228
+ *ftp://gpssensor.ddns.net:2121/data.log-20160229
+ 將這兩個網頁的資料複製到同一個記事本中
+ 另存新檔為 lass-data-log-20160228
+ *lass-data-log-20160228
+
+ 取得特定站點(FT1_034)資料 :
+ 在命令提示列(cmd)輸入指令取得特定裝置的資料
+ *type lass-data-log-20160228 | find "FT1_034" > FT1_034-0228.log
+ *type : 印出檔案內容
+ *find : 找出有指定字串的資料
+ *> : 將過濾之後的內容存到指定的名稱
+
+ *安裝函式庫 :
+ 預安裝 :
+ 必須先安裝Microsoft Visual C++ Compiler for Python 2.7,
+ 接下來的安裝才能順利進行
+ 下載 Microsoft Visual C++ Compiler for Python 2.7
+
+ 使用 pip 安裝
+ 利用 pip 安裝 simplekml 函式庫
+ *pip install simplekml
+ 安裝 matplotlib
+ *pip install matplotlib
+ *安裝的過程會將 numpy 一起裝好
+
+ *執行 lass.py python 程式
+ 執行成功會出現LASS版本號以及LASS提示符號
+ *
+ 載入資料
+ loaddata FT1_034-0228.log
+
+ 切換到匯出的功能
+ export
+
+ 匯出資料到指定的檔名
+ export>kml FT1_034-0228.kml
+
+ *
+
+ *顯示在 Google 我的地圖上
+ 開啟 google 我的地圖
+ https://www.google.com/maps/d/
+ 載入剛剛匯出的 kml 資料 ( FT1_034-0228.kml)
+
+ *
+
+ 載入成功
+
+ *
+
+ 點此可以瀏覽
2016-03-01 01:20 (unknown) r0
顯示 diff
+ Untitled
+ This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!