跑osgearthviewer程序 使用一个earth文件做参数传入 跟进代码. 首先osgearthviewer程序加载earth的方式分为两种: 1.根据earth文件(load方式) 2.使用SDK加载(create方式) 我们使用earth文件是load方式,直接看load函数,定位到这个位置 // load an earth file, and support all or our example command-line options // and earth file <exte…
参考:http://docs.osgearth.org/en/latest/data.html Processing Local Source Data If you have geospatial data that you would like to view in osgEarth, you can usually use the GDAL driver. If you plan on doing this, try loading it as-is first. If you find…
参考:http://docs.osgearth.org/en/latest/faq.html Common Usage How do I place a 3D model on the map? The osgEarth::GeoTransform class inherits from osg::Transform and will convert map coordinates into OSG world coordinates for you: GeoTransform* xform =…
在FlatteningLayer文件的createHeightField函数中:使用的github在2017年1月份的代码 if (!geoms.getComponents().empty()) { osg::ref_ptr<osg::HeightField> hf = HeightFieldUtils::createReferenceHeightField( ex, , , // base tile size for elevation data 0u, // no border true)…
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLASS DOCUMENTATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ /** \mainpage JSBSim * An Open Source, Object-Oriented, Cross-Platfo…