11 #include <osgEarth/Config>
12 #include <osgEarth/TileSource>
14 namespace makVrv {
namespace oe {
namespace CDB
16 using namespace osgEarth;
30 setDriver(
"cdbraster");
41 const optional<std::string>&
getCdbRootDir()
const {
return myCdbRootDir; }
47 const optional<std::string>&
getCdbImageExt()
const {
return myCdbImageExt; }
91 Config conf = TileSourceOptions::getConfig();
93 conf.updateIfSet(
"cdb_root", myCdbRootDir );
94 conf.updateIfSet(
"img_ext", myCdbImageExt );
95 conf.updateIfSet(
"cdb_dataset", myCdbDataset );
96 conf.updateIfSet(
"cdb_component_selector1", myCdbComponentSelector1 );
97 conf.updateIfSet(
"cdb_component_selector2", myCdbComponentSelector2 );
98 conf.updateIfSet(
"cdb_cache_file", myCdbNbCacheFile );
99 conf.updateIfSet(
"cdb_max_lod", myCdbMaxLod );
107 TileSourceOptions::mergeConfig( conf );
117 conf.getIfSet(
"cdb_root", myCdbRootDir );
118 conf.getIfSet(
"img_ext", myCdbImageExt );
119 conf.getIfSet(
"cdb_dataset", myCdbDataset );
120 conf.getIfSet(
"cdb_component_selector1", myCdbComponentSelector1 );
121 conf.getIfSet(
"cdb_component_selector2", myCdbComponentSelector2 );
122 conf.getIfSet(
"cdb_cache_file", myCdbNbCacheFile );
123 conf.getIfSet(
"cdb_max_lod", myCdbMaxLod );