11 #include <osgEarth/Config>
12 #include <osgEarth/TileSource>
14 namespace makVrv {
namespace oe {
namespace CDB
16 using namespace osgEarth;
38 optional<std::string>&
cdbRootDir() {
return myCdbRootDir; }
41 const optional<std::string>&
cdbRootDir()
const {
return myCdbRootDir; }
44 optional<std::string>&
cdbImageExt() {
return myCdbImageExt; }
47 const optional<std::string>&
cdbImageExt()
const {
return myCdbImageExt; }
53 const optional<int>&
cdbDataset()
const {
return myCdbDataset; }
84 const optional<int>&
cdbMaxLod()
const {
return myCdbMaxLod; }
90 Config conf = TileSourceOptions::getConfig();
92 conf.updateIfSet(
"cdb_root", myCdbRootDir );
93 conf.updateIfSet(
"img_ext", myCdbImageExt );
94 conf.updateIfSet(
"cdb_dataset", myCdbDataset );
95 conf.updateIfSet(
"cdb_component_selector1", myCdbComponentSelector1 );
96 conf.updateIfSet(
"cdb_component_selector2", myCdbComponentSelector2 );
97 conf.updateIfSet(
"cdb_cache_file", myCdbNbCacheFile );
98 conf.updateIfSet(
"cdb_max_lod", myCdbMaxLod );
105 TileSourceOptions::mergeConfig( conf );
113 conf.getIfSet(
"cdb_root", myCdbRootDir );
114 conf.getIfSet(
"img_ext", myCdbImageExt );
115 conf.getIfSet(
"cdb_dataset", myCdbDataset );
116 conf.getIfSet(
"cdb_component_selector1", myCdbComponentSelector1 );
117 conf.getIfSet(
"cdb_component_selector2", myCdbComponentSelector2 );
118 conf.getIfSet(
"cdb_cache_file", myCdbNbCacheFile );
119 conf.getIfSet(
"cdb_max_lod", myCdbMaxLod );