针对航空装备模拟训练领域对电子地图显示的需求,介绍了Shapefile矢量电子地图的格式和基于SHAPELIB的矢量特征和属性读取,基于OpenGL图形引擎实现了电子地图点、线、面三种特征的绘制方法,基于Windows GDI引擎实现了OpenGL环境下的文字渲染和输出,最后设计和实现了电子地图可视化编辑工具和电子地图实时渲染模块,解决了军机仿真中机载电子地图加载和显示、二维战场态势电子地图显示的问题。
According to the requirements of electronic map display in the field of aviation equipment simulation training, this paper introduces the format of Shapefile and the reading of vector features and attributes based on SHAPELIB, realizes the drawing method of electronic map point, line and surface based on OpenGL graphics engine, and realizes text rendering and output in OpenGL environment based on Windows GDI engine. Finally, the electronic map visual editing tool and the electronic map real-time rendering module are designed and implemented, which solves the problems of airborne electronic map loading and display and two-dimensional battlefield situation electronic map display in military aircraft simulation.