11 #include <osgEarth/Config>
12 #include <osgEarth/TileSource>
14 namespace makVrv {
namespace oe {
namespace CDB
16 using namespace osgEarth;
17 using namespace osgEarth::Contrib;
31 setDriver(
"cdbraster");
42 const optional<std::string>&
getCdbRootDir()
const {
return myCdbRootDir; }
48 const optional<std::string>&
getCdbImageExt()
const {
return myCdbImageExt; }
92 Config conf = TileSourceOptions::getConfig();
94 conf.set(
"cdb_root", myCdbRootDir );
95 conf.set(
"img_ext", myCdbImageExt );
96 conf.set(
"cdb_dataset", myCdbDataset );
97 conf.set(
"cdb_component_selector1", myCdbComponentSelector1 );
98 conf.set(
"cdb_component_selector2", myCdbComponentSelector2 );
99 conf.set(
"cdb_cache_file", myCdbNbCacheFile );
100 conf.set(
"cdb_max_lod", myCdbMaxLod );
108 TileSourceOptions::mergeConfig( conf );
118 conf.get(
"cdb_root", myCdbRootDir );
119 conf.get(
"img_ext", myCdbImageExt );
120 conf.get(
"cdb_dataset", myCdbDataset );
121 conf.get(
"cdb_component_selector1", myCdbComponentSelector1 );
122 conf.get(
"cdb_component_selector2", myCdbComponentSelector2 );
123 conf.get(
"cdb_cache_file", myCdbNbCacheFile );
124 conf.get(
"cdb_max_lod", myCdbMaxLod );
optional< std::string > myCdbImageExt
alternate extension
Definition: DtCDBOptions.h:129
optional< int > & getCdbMaxLod()
Optional getter of Cdb Max Lod of this dataset.
Definition: DtCDBOptions.h:78
optional< int > myCdbDataset
CDB Dataset code.
Definition: DtCDBOptions.h:131
optional< int > & getCdbNbCacheFile()
Optional getter of Cdb cache file to keep in memory while constructing the OSG tiles.
Definition: DtCDBOptions.h:69
const optional< int > & getCdbMaxLod() const
getter of Cdb Max Lod of this dataset.
Definition: DtCDBOptions.h:84
optional< int > & getCdbComponentSelector2()
Optional getter of the Cdb Component Selector 2 code (Txxx)
Definition: DtCDBOptions.h:63
optional< int > & getCdbDataset()
Optional getter of the Cdb dataset code (Dxxx)
Definition: DtCDBOptions.h:51
const optional< int > & getCdbNbCacheFile() const
getter of Cdb cache file to keep in memory while constructing the OSG tiles
Definition: DtCDBOptions.h:72
const optional< std::string > & getCdbImageExt() const
getter of the Cdb dataset file extension.
Definition: DtCDBOptions.h:48
optional< int > myCdbNbCacheFile
Number of cache file for this dataset.
Definition: DtCDBOptions.h:137
optional< int > myCdbComponentSelector2
CDB Dataset Component Selector 2.
Definition: DtCDBOptions.h:135
const optional< int > & getCdbComponentSelector1() const
getter of the Cdb Component Selector 1 code (Sxxx)
Definition: DtCDBOptions.h:60
optional< std::string > myCdbRootDir
root CDB folder
Definition: DtCDBOptions.h:127
void mergeConfig(const Config &conf)
merge this configuration with the TileSourceOption configuration
Definition: DtCDBOptions.h:106
Config config() const
Associated the string found in the earth file to the member variable.
Definition: DtCDBOptions.h:90
const optional< int > & getCdbComponentSelector2() const
getter of the Cdb Component Selector 2 code (Txxx)
Definition: DtCDBOptions.h:66
optional< int > myCdbMaxLod
Max LOD we want to load.
Definition: DtCDBOptions.h:139
Used to pass option(s) Pass option from the OSG earth file to this "cdbraster" driver.
Definition: DtCDBOptions.h:22
optional< int > myCdbComponentSelector1
CDB Dataset Component Selector 1.
Definition: DtCDBOptions.h:133
void fromConfig(const Config &conf)
Associated the string found in the earth file to the member variable.
Definition: DtCDBOptions.h:115
virtual ~CDBOptions()
DTOR.
Definition: DtCDBOptions.h:36
optional< std::string > & getCdbRootDir()
Optional getter of the Cdb root folder.
Definition: DtCDBOptions.h:39
CDBOptions(const TileSourceOptions &options=TileSourceOptions())
CTOR.
Definition: DtCDBOptions.h:27
optional< int > & getCdbComponentSelector1()
Optional getter of the Cdb Component Selector 1 code (Sxxx)
Definition: DtCDBOptions.h:57
optional< std::string > & getCdbImageExt()
Optional getter of the Cdb dataset file extension.
Definition: DtCDBOptions.h:45
const optional< std::string > & getCdbRootDir() const
getter of the Cdb root folder
Definition: DtCDBOptions.h:42
const optional< int > & getCdbDataset() const
getter of the Cdb dataset code (Dxxx)
Definition: DtCDBOptions.h:54