APP下载

KMZ文件批量加载WorldWind的研究与实现

2014-08-14刘洋洋

电脑知识与技术 2014年19期

摘要:WorldWind是美国航天宇航局(NASA)研发的一款三维地理信息系统软件。由于WorldWind每次只能加载单个KMZ模型文件,加载效率过低,所以给基于WorldWind三维模型加载的科学研究来带来了很大的不便。基于worldwind对KMZ文件批量加载的需求,该文通过分析KMZ文件内部结构,改进了WorldWind中用于KMZ文件加载的相关代码,最终实现了KMZ文件在worldwind中的批量加载,为基于worldwind的后续研究提供了便利。

关键词: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推出的一款完全开放源代码的三维地理信息系统软件。不同于面向大众的GooleEarth,worldwind是一款专门用于科研开发的三维地理信息系统软件。通过研究发现,在模型加载方面,WorldWind提供了一个.x文件的加载接口,通过该接口可加载KML文件。如果要加载KMZ文件,需要根据KML文件中的链接,加载DAE文件,从而实现对KMZ文件的加载。但由于系统原因,每次只能加载一个KMZ文件,这对基于worldwind进行开发的科研人员造成了很大不便。基于对KMZ文件批量加载的需求,该文对KMZ文件进行了拆分和解析,了解其加载原理后改进了WorldWind中用于KMZ文件加载的相关代码,最终实现了KMZ文件在WorldWind中的批量加载。

1 虚拟地球仪WorldWind

WorldWind(简称WW,中文直译为世界风),俗称地球放大镜,是美国航天宇航局(NASA)阿莫斯研究中心的科研人员研发的一款完全开放源代码的地理科普软件。得益于NASA强大的硬件条件,WorldWind可以利用SRTM、MODIS、GLOBE等多颗卫星的数据,将航天飞机雷达遥感数据和Landmark卫星的图像结合在一起,让用户体验遨游三维地球的感觉[1]。……

登录APP查看全文