|
各位大牛,我想用下面程序读取DTED数据,GDAL插件已编译得到,
osgDB::ReaderWriter* readerWriter = osgDB::Registry::instance()->getReaderWriterForExtension("gdal");
if (!readerWriter)
{
std::cout<<"Error: GDAL plugin not available, cannot preceed with database creation"<<std::endl;
//return false;
}
osg::ref_ptr<osg::HeightField> hf = osgDB::readHeightFieldFile("N44W074.dt0");//添加
接下来该怎么将地形添加至场景中,我是初学者,查了好多资料也没看到,请各位大牛不吝赐教!!! |
|