13 #include <osgEarth/TileSource>
14 #include <osgEarth/GeoData>
22 namespace makVrv {
namespace oe {
namespace CDB
24 using namespace osgEarth;
50 #define OSG_CDB_LOD_OFFSET 9
60 CDBTile(
const std::string& CdbRootDir);
67 bool getLatLon(
unsigned int wsg84_lod,
double coord_x,
double coord_y,
68 std::string& lat_str, std::string& lon_str,
int& cdb_lod,
int& DLonZone, std::string& path_lod_str,
CDBTileCache* TileCachePtr);
72 bool getPathComponents(
unsigned int wgs84_lod,
double x_coord,
double y_coord,
73 CDBTileVerbose& key, std::string& lod_str, std::string& path_lod_str,
77 static int calcDLonZone(
double coord_y);
81 int getNumTilesFoundOnDisk(
const std::vector<TileKey>& intersectingKeys,
82 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
int lod,
CDBTileCache* TileCachePtr);
88 bool getTileName(
unsigned int wgs84_lod,
double x_coord,
double y_coord,
89 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
90 std::string& tile_name,
CDBTileCache* TileCachePtr,
bool exitIfGeocellDoesNotExist =
false);
93 void getTilesName(
unsigned int wgs84_lod,
const osgEarth::GeoExtent& tileExtent,
94 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
98 std::string getTileFullPath(
int lat,
int lon,
99 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
100 int lod,
int uref,
int rref,
bool secondaryExt =
false)
const;
104 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
105 int lod,
bool secondaryExt =
false)
const;
108 std::string getTileFolder(
const CDBTileVerbose& key,
const std::string& lod_string,
int CdbDatasetCode)
const;
112 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
113 const std::string& lod_string,
114 const std::string& FACC,
const std::string& FSC,
const std::string& modelName)
const;
118 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
119 const std::string& lod_string,
bool secondaryExt =
false)
const;
122 std::string getLodString(
int lod)
const;
125 std::string getLodFolderString(
int lod)
const;
128 std::string getLatString(
double lat)
const;
131 std::string getLatString(
int lat)
const;
134 std::string getLonString(
double lat,
double lon,
int& DLonZone)
const;
137 std::string getLonString(
int lon)
const;
140 std::string getUrefString(
int uref)
const;
143 std::string getRrefString(
int rref)
const;
146 void getRrefString(
double lat,
double lon,
int cdb_lod, std::string& uref_string, std::string& rref_string)
const;
149 const std::string getCdbRoot();
155 void addExistingTileIfNeeded(
const CDBTileVerbose& key,
const std::string& lod_string,
int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
CDB Tile cache manager Used by CDBTileSource to try to avoid reading the the same CDB tile many time ...
Definition: DtCDBTileCache.h:34
functions class that help find CDB tiles information
#define DT_DLL_OSGEARTH_CDB_UTILS
Definition: DtCDBExport.h:18
Class the parse CDB folder before loading it to speed up the actual reading later.
Utility class to get CDB dataset information.
std::set< std::string, CdbTileFilenameComparator > CdbTileOrderedSet
Definition: DtCDBUtils.h:131
std::string myCdbRootDir
CDB root folder from the .earth file.
Definition: DtCDBTile.h:162
Class used to find CDB Tiles information.
Definition: DtCDBTile.h:55
Utility class to pass CDB lat/lon/ured/rref) values.
Definition: DtCDBTileVerbose.h:17
CDBDatasets * myCDBDatasets
CDB Dataset information manager.
Definition: DtCDBTile.h:165
CDB Dataset class. Hold Dataset information Helper class to retreive CBD Dataset information.
Definition: DtCDBDatasets.h:78