摘要
为了提高在地质灾害中WebGIS应用系统渲染地质灾害地图的效率和质量,本文设计并实现了基于GDI+和AGG混合图形库模式的地质灾害地图渲染引擎。首先,研究了多个计算机图形库特性并分析了一般地图渲染流程,设计了具有分层体系架构的地质灾害地图渲染引擎;其次,根据设计及软件工程理论,采用面向对象与组件技术实现了该地图渲染引擎;最后,通过对该地图渲染引擎各要素渲染质量和性能的对比分析,以及在实际项目中大规模的应用,证明了该地图渲染引擎能很好地满足用户对地质灾害地图美观和效率的需求,对其他应用领域具有借鉴意义。
For the purpose of improving the efficiency and quality of rendering geo-hazard map in WebGIS system for the prevention of geological hazards,this paper designs and implements a rendering engine for geo-hazard maps in a mixed graphic library mode which is based on AGG and GDI+.Firstly,the paper designs a hierarchical architecture of the map rendering engine after studying the features of many computer graphic libraries and analyzing the process of geo-hazard map rendering.Secondly,according to the design and theories of software engineering,the paper implements the map rendering engine using object-oriented and component technology.Finally,the paper compares and analyzes the rendering quality and performance of various elements of the engine and applies the engine to large-scale projects.The result shows that the map rendering engine can meet users' demands of the appearance and efficiency of geo-hazard map and can also be extended to other areas.
引文
[1]胡志瑞.基于WebGIS的地质灾害预警预报系统研究[J].测绘与空间地理信息,2012,35(11):56-59.
[2]余志山,梁润娥,王延江,等.基于WebGIS的兰州市区滑坡灾害气象多元化模型预警系统研究[J].工程地质学报,2012,20(4):556-562.
[3]夏添,唐川,常鸣.基于WebGIS的泥石流预警系统构建[J].水利学报,2012,43(2):181-185.
[4]张桂荣,殷坤龙,刘礼领,等.基于WEBGIS和实时降雨信息的区域地质灾害预警预报系统[J].岩土力学,2005,26(8):1312-1317.
[5]张桂荣,殷坤龙,刘礼领,等.基于WebGIS云南滑坡灾害气象预警分析模型[J].地理信息世界,2012,8(4):36-43.
[6]Peng,Z.P.,M.H.Tsou.Internet GIS:Distributed Geographic Information Services for the Internet and Wireless Network[M].Hoboken,New Jersey:John Wiley&Sons,Inc.,2003:506.
[7]刘洪光,高锡林,马维峰,等.基于ArcGIS的地质灾害地图符号库设计与实现[J].国土资源遥感,2011,89(2):147-150.
[8]陈米思.地图及位置服务在地质灾害管理中的应用研究[J].海峡科学,2012,69(9):28-32.
[9]Yang,C.J.,S.Wu,Y.C.Ren,et al.Loose architecture of multilevel massive geospatial data based on virtual quadtree[J].Science in China Series E:Technological Sciences,2008,51(1):114-123.
[10]刘楠,李欣.跨平台高质量二维图形库设计与实现[J].计算机工程与设计,2010,31(7):1599-1622.
[11]张玲,陈元春,孙勇.基于GDI+的通用图形平台设计[J].计算机工程,2005,31(12):218-220.
[12]Chand,M.Graphics Programming with GDI+[M].Boston:Pearson Education,Inc.,2004:1-3.
[13]Microsoft.MSDN[EB/OL].http://msdn.microsoft.com/enus/library/zccx11ha%28v=vs.71%29.aspx.
[14]Shemanarev,M.AGG Reference Manual[EB/OL].http://www.antigrain.com/doc/index.html.
[15]鲁力,李欣.基于AGG算法库的通用图形接口设计[J].微计算机信息,2009,25(2-3):266-267.
[16]Wikipedia.Rasterisation[EB/OL].http://en.wikipedia.org/wiki/Rasterisation.
[17]FreeType Project[EB/OL].http://www.freetype.org/freetype2/index.html.
[18](美)怀特.GDI+程序设计[M].杨浩,张哲峰,译.北京:清华大学出版社,2002:99-100.