摘要:WorldWind是美國航天宇航局(NASA)研發(fā)的一款三維地理信息系統(tǒng)軟件。由于WorldWind每次只能加載單個KMZ模型文件,加載效率過低,所以給基于WorldWind三維模型加載的科學研究來帶來了很大的不便。基于worldwind對KMZ文件批量加載的需求,該文通過分析KMZ文件內(nèi)部結(jié)構(gòu),改進了WorldWind中用于KMZ文件加載的相關代碼,最終實現(xiàn)了KMZ文件在worldwind中的批量加載,為基于worldwind的后續(xù)研究提供了便利。
關鍵詞:WorldWind;KMZ文件;三維模型;模型加載
中圖分類號:TP311 文獻標識碼:A 文章編號:1009-3044(2014)19-4574-03
KMZ File Bulk Loading WorldWind Research and Implementation
LIU Yang-yang
(College of Surveying and Mapping,Henan Polytechnic University , Jiaozuo 454003, China)
Abstract:WorldWind is the U.S. space agency (NASA) produced a three-dimensional geographic information system software. WorldWind without their own 3 d model file format, just provide a. Point x file loading interface. Because of the limitation of format is required when the 3 d model implanted WorldWind through commercial plugin to convert the format first, then to load, so that to scientific research to a lot of inconvenience, 3 d model and easy to lose in the process of transformation of material, layer, and other important information. Based on load demand, this paper analyzes KMZ file internal structure, improve the load in the WorldWind class code, created the KML file loading port WorldWind programs. Finally, through further research, this paper realizes the KMZ model bulk loading WorldWind, and based on the three-dimensional model for subsequent ray tracing study to lay a solid foundation.
Key words:WorldWind;KMZ file;3D Model;model loading
WorldWind是美國航天宇航局(NASA推出的一款完全開放源代碼的三維地理信息系統(tǒng)軟件。不同于面向大眾的GooleEarth,worldwind是一款專門用于科研開發(fā)的三維地理信息系統(tǒng)軟件。通過研究發(fā)現(xiàn),在模型加載方面,WorldWind提供了一個.x文件的加載接口,通過該接口可加載KML文件。如果要加載KMZ文件,需要根據(jù)KML文件中的鏈接,加載DAE文件,從而實現(xiàn)對KMZ文件的加載。但由于系統(tǒng)原因,每次只能加載一個KMZ文件,這對基于worldwind進行開發(fā)的科研人員造成了很大不便。基于對KMZ文件批量加載的需求,該文對KMZ文件進行了拆分和解析,了解其加載原理后改進了WorldWind中用于KMZ文件加載的相關代碼,最終實現(xiàn)了KMZ文件在WorldWind中的批量加載。
1 虛擬地球儀WorldWind
WorldWind(簡稱WW,中文直譯為世界風),俗稱地球放大鏡,是美國航天宇航局(NASA)阿莫斯研究中心的科研人員研發(fā)的一款完全開放源代碼的地理科普軟件。得益于NASA強大的硬件條件,WorldWind可以利用SRTM、MODIS、GLOBE等多顆衛(wèi)星的數(shù)據(jù),將航天飛機雷達遙感數(shù)據(jù)和Landmark衛(wèi)星的圖像結(jié)合在一起,讓用戶體驗遨游三維地球的感覺[1]。……