Responsive image
博碩士論文 etd-0120111-100605 詳細資訊
Title page for etd-0120111-100605
論文名稱
Title
以 Flash 開發 WebGIS 之技術探討與實作
Study and Implementation of a Web GIS with Flash
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
84
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2011-01-11
繳交日期
Date of Submission
2011-01-20
關鍵字
Keywords
Flash、自由軟體、網路地圖服務、網際網路地理資訊系統
OpenGIS, WebGIS, Flash, Web Mapping Service(WMS)
統計
Statistics
本論文已被瀏覽 5724 次,被下載 1343
The thesis/dissertation has been browsed 5724 times, has been downloaded 1343 times.
中文摘要
自從 2005 年 6 月 Google 使用 Ajax 技術,提供 Google Maps 服務,將地圖資料預先處理, 並利用客戶端的瀏覽器與暫存機制,改良了網際網路地理資訊系統長久以來伺服器端與客戶 端效能平衡的問題。而 OGC 也將此機制定義為 WMS-C 規範,但 Ajax 技術需架構在瀏覽器 的 HTML 與 Javscript 下,如要處理地理資訊的大量之資料,將會產生效能之瓶頸,因而透 過瀏覽器的外掛程式(Plugin)來增強處理資料的效能,依然是必頇的。
本研究首先探討過去與現今各種 WebGIS 地圖顯示之技術,包含了 CGI、Java Applet、 Ajax、Flash 等之優劣,並針對 Java Applet、Ajax、Flash 進行分析比較,因 Flash 較完整的 圖形顯示能力與完善的使用者操作互動介面,相當符合 WebGIS 所需之高操作互動性和高顯 示效能。而 Flash 可讓開發完成之程式,直接發佈到不同的作業系統或瀏覽器,無需像 Java Applet 或 Ajax 可能需依不同作業系統或瀏覽器來修改程式碼,造成程式開發成本的增加, 是故本研究選擇使用 Flash 開發一 WebGIS 系統。其後端選擇了 MapServer 作為地圖發佈軟體,並結合 TileCache 將中山大學範圍之航拍影像圖預先切幅處理,以加快地圖載入速度, 另外套疊高雄市行政區域圖作為向量圖資。研究中並規劃一些 WebGIS 核心物件,包含了 Map 物件、View 物件、Layer 物件、TMSLayer 物件、FeatureLayer 物件,同時實作出物件 與物件間方程式,開發了影像與向量圖資之載入、地圖縮放、地圖平移等功能。
最後將實作後的 WebGIS 系統與單純使用 MapServer 之 WebGIS 進行效能與互動性之比 較,在向量圖資載入的效能已能與 MapServer 並駕齊驅;而向量平移之部分,Flash 已先將向 量圖資載入至客戶端 Flash 中,以致能提供較好之效能;而影像圖資之載入、平移、縮放,因 先切幅處理過,所以其顯圖速度能大大之提昇。而在互動性的部份 Flash 可透過滑鼠滾輪之 滾動直接操控地圖,可縮短使用者操作的時間,而 Flash 之顯示淡出、淡入之特效,可讓使 用者有圖資卸下與載入之感覺,減少以往需長時間等待地圖顯示的空白畫面。而 Flash 在移 除某單一圖層後,地圖仍保留其他圖層,讓使用者更能精確掌握所要之地圖資訊,同時也減 少伺服器端之負載。另透過 Flash 原本之特效,可操作地圖影像之透明度,有利於兩張影像 圖疊合比對,而 Flash 之圖層為一個個圖層物件,也有利於直接調整圖層之上下關係。另外 向量圖資載入成 Flash 之繪圖物件後,可透過 Flash 之簡易編修功能,達到物件的移動、旋 轉、縮放等功能,可提供使用者簡易之 GIS 編輯功能。
Abstract
Google announced Google Maps Service on June 2005, and they developed and used many technologies to solve performance balance issue that long existing in client-server GIS system, including Ajax, map data pre-processing, and browser's cookies system. OGC defined this mechanism as WMS-C. However, Ajax is a technology based on HTML and javascript, when processing mass spatial data, it could be the bottleneck of performace. Therefore, using browser plugin to improve performance on data processing is necessary.
This paper discuss on WebGIS related technologies, including CGI, Java Applet, Ajax, Flash, and compare their weakness and strength, then we focus on analyzing Java Applet, Ajax, Flash. Flash provides better graphics processing abilities, smooth interactive operation, fast display performance, make it suitable to be a WebGIS platform. Flash also support multi-platform and multi-browser, and it can be deployed with the same programming code. So this study chooses Flash and it's language Action Script to develop WebGIS client, backend with Mapserver to publish map data. We also use TileCache to pre-process aerial images of National Sun Yat-sen University into image tiles. Also it is overlaid with Kaohsung district map as vector data. The actionscript in the WebGIS core library include classes like Map, View, Layer, TMSLayer, FeatureLayer. It is fully implemented as a Flash based WebGIS system.
Lastly, we compare the Flash-based MapServer system with MapServer only regarding to there performance and interactivity. On loading vector data, flash performance is nearly equal to Mapserver. When vector panned, flash performs better because flash uses pre-loading image tiles, but Mapserver renders repeatly after every move. On interactivity, flash can directly zoom the map with mouse wheel, and it can shorten user’s operating time. And flash can also dispaly animations like fade in, out, etc. After removing one single layer, the map still preserve the other layers, so users can handle the map information more precisely, and can reduce the loading of servers.
目次 Table of Contents
第一章 緒論…………………………………………………………………………………1
1.1 研究動機與目的……………………………………………………………………1
1.2 研究流程及內容……………………………………………………………………3
1.3 論文架構……………………………………………………………………………5
第二章 WebGIS 技術比較…………………………………………………………………6
2.2 WebGIS之定義……………………………………………………………………6
2.2 WebGIS技術的探討………………………………………………………………6
2.2.1 共通閘道介面(Common Gateway Interface ,CGI) ……………………………6
2.2.2 Java Applet…………………………………………………………………………7
2.2.3 AJAX…………………………………………………………………………………8
2.2.4 Flash………………………………………………………………………………10
2.3 技術分析回顧………………………………………………………………………11
第三章 網際網路地理資訊伺服器…………………………………………………………13
3.1 MapServer…………………………………………………………………………13
3.1.1 MapServer簡介……………………………………………………………………13
3.1.2 MapServer 組成元件及作業流程 ………………………………………………14
3.1.3 MapServer 支援 OGC 開放式介面規格…………………………………………18
3.2 WMS Tile Caching(or WMS-C) …………………………………………………19
3.3 Tile Map Service………………………………………………………………20
3.3.1 TMS介紹…………………………………………………………………………20
3.3.2 TMS規範…………………………………………………………………………20
3.3.3 根資源(Root Resource) …………………………………………………………20
3.3.4 TileMapService資源(TileMapService Resource) …………………………21
3.3.5 TileMap資源(TileMap Resource) ………………………………………………22
3.3.6 Tile資源(Tile Resource)……………………………………………………24
3.3.7 檔案暫存機制(Caching)………………………………………………………25
第四章 系統建置…………………………………………………………………………27
4.1.1 系統架構…………………………………………………………………………27
4.1.2 系統環境設置……………………………………………………………………29
4.2 Flash WebGIS開發………………………………………………………………43
4.2.1 物件圖……………………………………………………………………………43
4.2.2 Layer物件…………………………………………………………………………43
4.2.3 TMSLayer物件……………………………………………………………………45
4.2.4 FeatureLayer物件………………………………………………………………45
4.2.5 View物件…………………………………………………………………………46
4.2.6 Map物件……………………………………………………………………………47
4.3 系統建置……………………………………………………………………………49
4.3.1 圖層參數設定………………………………………………………………………49
4.3.2 影像圖資載入………………………………………………………………………49
4.3.3 影像地圖縮放………………………………………………………………………51
4.3.4 影像地圖平移………………………………………………………………………53
4.3.5 向量地圖載入………………………………………………………………………55
4.3.6 向量地圖縮放………………………………………………………………………56
4.3.7 向量地圖平移………………………………………………………………………58
4.4 成果畫面……………………………………………………………………………60
4.5 成果分析……………………………………………………………………………63
4.5.1 圖資載入速度分析…………………………………………………………………63
4.5.2 互動性比較…………………………………………………………………………65
4.5.3 Flash其他應用……………………………………………………………………65
第五章 結論與未來發展……………………………………………………………………66
5.1 結論………………………………………………………………………………66
5.2 未來發展…………………………………………………………………………67
參考文獻………………………………………………………………………………………68
附錄一…………………………………………………………………………………………70
附錄二…………………………………………………………………………………………72
參考文獻 References
1. 中研院(2002),WebGIS 技術、系統架構與應用,中央研究院計算中心空間 資訊技術小組 http://www.ndap.org.tw/TechReport/part3/html/030chapter/060.shtml。
2. 黃旭初(2002),新世代的 GIS 編碼標準-地理圖形標記語言 GML, http://ngis.moi.gov.tw/ngis-net/index2.jsp。
3. 陳亮、陳絢、詹偉杰(2006),基於 Flash 技術的校園電子地圖的實現,高等 專科學校學報?,第 29-31 頁。
4. 任福、蔡忠亮、时晓燕(2002),基于 FLASH 技术的专业互动多媒体网络地 图的构建,武汉大学资源与环境科学学院?。
5. 羅獻之(2005), Web-GIS 地圖資料庫之架構設計,國立成功大學測量工程 研究所碩士論文。
6. 吳宗翰(2007),以 Web2.0 為基礎之地理空間資料在地理網路服務研究,國 立中山大學海洋環境及工程學系研究所碩士論文。
7. 江文意 (2004),SVG 在 Web GIS 時空資料視覺化之設計,大葉大學資訊 管理學系碩士論文。
8. 李定剛(2005),應用於互操作性環境之地理資料描述基本架構,國立成功大 學測量及空間資訊學系碩士論文。
9. 陳佳勳(2006),以目錄服務與空間資源詮釋資料提昇空間資料基礎架構之互 操作性,國立成功大學測量及空間資訊學系碩士論文。
10. 江宗展 (2003),WebGIS 之研究與實作-以自由軟體為工具,國立交通大學 土木工程學研究所碩士論文。
11. 柯景騰(2005),利用自由軟體建構森林資源調查 WebGIS 之研究,國立政 治大學地政學系碩士論文。
12. 楊笙貝(2003),以 XML 為基礎之 Web GIS 研究-以 SVG 為例,國立中山 大學海洋環境及工程學研究所碩士論文。
13. 林士裕、洪榮宏(2005),開放式架構之網路主題地圖服務, 2005 年台灣地 68
理資訊學會年會暨學術研討會論文集。
14. 黃玫瑋(2008),網頁新視覺享受-RIA,台灣大學計算機及資訊網路中心電子
報,http://www.cc.ntu.edu.tw/chinese/epaper/0002/20070920_2008.htm。
15. Noda,T. and Helwi,S.,(2005),Rich Internet Applications, Technical Comparison and
Case Studies of AJAX, Flash, and Java based RIA, Best Practice Reports.
16. Allaire, J.,(2002), Macromedia Flash MX—A next-generation rich client,
macromedia white paper.
17. Song, X., Kono, Y. and Shibayama, M., (2005), Environmental Cambodia: an open
source GIS approach to web mapping, Journal of China University of Mining and
Technology Volume 18, Issue 3, September 2008, Pages 381-385.
18. Todd, T., Wanjoo, C. and Todd, B., (2002), Enhanced GIS Presentation for Harris County Capital Improvement Projects through Flash & GIS integration, 2005 Esri
International User Conference Proceedings.
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內校外完全公開 unrestricted
開放時間 Available:
校內 Campus: 已公開 available
校外 Off-campus: 已公開 available


紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code