![]() |
VR-Forces Developer's Guide
|
FeatureSource that reads feature tiles from a parameterized "CDB" source.

Classes | |
| class | Options |
Public Member Functions | |
| META_Layer (osgEarth, CDBFeatureSource, Options, TiledFeatureSource, cdbfeatures) | |
| void | setDataset (const int &value) |
| const int & | getDataset () const |
| void | setComponentSelector1 (const int &value) |
| const int & | getComponentSelector1 () const |
| void | setComponentSelector2 (const int &value) |
| const int & | getComponentSelector2 () const |
| void | setCdbRoot (const std::string &value) |
| const std::string & | getCdbRoot () const |
| void | setMakVrfLayer (const std::string &value) |
| const std::string & | getMakVrfLayer () const |
| Status | insert (const TileKey &key, const FeatureList &features, bool overwrite) override |
| Status | openImplementation () override |
| bool | isWritable () const override |
Protected Member Functions | |
| void | init () override |
| FeatureCursor * | createFeatureCursorImplementation (const Query &query, ProgressCallback *progress) const override |
| int | getCDBMaxLOD () |
| void | readFeatureFromCache (const osgEarth::optional< osgEarth::TileKey > &osgEarthTileKey, FeatureList ¤tCdbTileFeatures, FeatureList &osgEarthFeatures) const |
| virtual | ~CDBFeatureSource () |
| bool | isFeatureDatasetSupported () |
| bool | openCDBDatabase () |
| void | readCDBDatasetInfo (osgEarth::GeoExtent &cdbGeoExtent) |
| void | readCDBTilesToCache (ProgressCallback *progress) const |
| void | getCDBTilesForOsgEarthTileKey (const osgEarth::optional< osgEarth::TileKey > &osgEarthTileKey, makVrv::oe::CDB::DtCDBUtils::CdbTileOrderedSet &cdbTiles) const |
| void | readFeaturesFromCDBTiles (const osgEarth::optional< osgEarth::TileKey > &osgEarthTileKey, const makVrv::oe::CDB::DtCDBUtils::CdbTileOrderedSet &cdbTiles, FeatureList &osgEarthFeatures, ProgressCallback *progress) const |
| bool | fileInCache (const std::string shpInstanceFile, FeatureList ¤tCdbTileFeatures) const |
Private Member Functions | |
| void | debugPrintCacheFeatures (const osgEarth::optional< osgEarth::TileKey > &osgEarthTileKey, const FeatureList ¤tCdbTileFeatures, const std::string shpInstanceFile) const |
| void | debugPrintOutputFromCacheFeatures (const osgEarth::optional< osgEarth::TileKey > &osgEarthTileKey, const FeatureList &osgEarthFeatures, const std::string shpInstanceFile) const |
Private Attributes | |
| osg::ref_ptr < makVrv::oe::CDB::DtCDBDatabase > | myCdbDatabase |
| makVrv::oe::CDB::DatasetInfo | myDatasetInfo |
| makVrv::oe::CDB::CDBTile * | myCdbTilePtr |
| osg::ref_ptr < makVrv::oe::CDB::CDBTileCache > | myTileCache |
| osg::ref_ptr < osgEarth::SpatialReference > | myWgs84 |
| osg::ref_ptr < makVrv::oe::CDB::DtCDBVectorFeature > | myVector |
| osg::ref_ptr < makVrv::oe::CDB::DtCDBVectorFeature > | myCacheVector |
| makVrv::DtDe * | myDe |
| makVrv::oe::CDB::CacheVectorDataMap | myCacheVectorData |
| osgEarth::Threading::Mutex | myMutex |
| bool | myReadCacheFilesDone |
| GeoExtent | myCdbDatasetExtent |
| bool | myFoundDataForDataset |
|
inlineprotectedvirtual |
| osgEarth::CDBFeatureSource::META_Layer | ( | osgEarth | , |
| CDBFeatureSource | , | ||
| Options | , | ||
| TiledFeatureSource | , | ||
| cdbfeatures | |||
| ) |
| void osgEarth::CDBFeatureSource::setDataset | ( | const int & | value | ) |
Read the CDB dataset.
| const int& osgEarth::CDBFeatureSource::getDataset | ( | ) | const |
| void osgEarth::CDBFeatureSource::setComponentSelector1 | ( | const int & | value | ) |
Read the CDB Component Selector1.
| const int& osgEarth::CDBFeatureSource::getComponentSelector1 | ( | ) | const |
| void osgEarth::CDBFeatureSource::setComponentSelector2 | ( | const int & | value | ) |
Read the CDB Component Selector2.
| const int& osgEarth::CDBFeatureSource::getComponentSelector2 | ( | ) | const |
| void osgEarth::CDBFeatureSource::setCdbRoot | ( | const std::string & | value | ) |
Read the CDB root directory.
| const std::string& osgEarth::CDBFeatureSource::getCdbRoot | ( | ) | const |
| void osgEarth::CDBFeatureSource::setMakVrfLayer | ( | const std::string & | value | ) |
Read the mak_vrf_layer directory.
| const std::string& osgEarth::CDBFeatureSource::getMakVrfLayer | ( | ) | const |
|
override |
Inserts a full tile of features to the feature source.
|
override |
Open the source.
|
overrideprotected |
Initialize the layer.
|
overrideprotected |
Return the features if exist for the given query (tile key)
|
protected |
Get the maximum CDB LOD supported by this dataset.
|
protected |
Read features from cache if available.
|
override |
|
protected |
List of CDB datasets supported by this feature source.
|
protected |
Open the CDB database.
|
protected |
Read the CDB dataset info (extent and LOD)
|
protected |
read all CDB tiles we want to cache (LC, LOD0, LOD1) only once for the whole dataset
|
protected |
Get CDB dataset tiles listing that intersect the given osgEarth tile key.
|
protected |
Read features from the CDB tiles.
|
protected |
Check if the given shpInstanceFile is already in the cache.
|
private |
Debug function print the cached features.
|
private |
Debug function print the the output from cached features.
|
private |
CDB database object.
|
private |
Current CDB Dataset information.
|
private |
CDB Tile utility object.
|
private |
CDB Tile cache object.
|
private |
Spatial reference pointer geocentric.
|
private |
pointer to manage different types of vector feature object Vrv This will be used for reading/clipping/cropping features to return the osgEarth tile
|
private |
pointer to manage different types of vector feature object Vrv This one will only be used for LC/LOD0/LOD1 caching It will not be clip or cropped like myVector in order to have full features for caching
|
private |
Pointer to DtDe object.
|
private |
Cache vector data to reduce re-read of the same vector files and conversion to features We want to cache LC, LOD 0 and LOD 1 for now.
|
mutableprivate |
Mutex object to allow thread safety.
|
private |
Flag to indicate if we already read cache files (LC, LOD0, LOD1) for the whole CDB dataset.
|
private |
CDB Dataset GeoExtent.
|
private |
Flag to indicate if there is no data for this dataset.