13 #include <osgEarth/TileSource>
19 namespace makVrv {
namespace oe {
namespace CDB
21 using namespace osgEarth;
47 #define OSG_CDB_LOD_OFFSET 9
57 CDBTile(
const std::string& CdbRootDir);
64 bool getLatLon(
unsigned int wsg84_lod,
double coord_x,
double coord_y,
65 std::string& lat_str, std::string& lon_str,
int& cdb_lod,
int& DLonZone, std::string& path_lod_str,
CDBTileCache* TileCachePtr);
69 bool getPathComponents(
unsigned int wgs84_lod,
double x_coord,
double y_coord,
70 CDBTileVerbose& key, std::string& lod_str, std::string& path_lod_str,
74 static int calcDLonZone(
double coord_y);
78 int getNumTilesFoundOnDisk(
const std::vector<TileKey>& intersectingKeys,
79 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
int lod,
CDBTileCache* TileCachePtr);
85 bool getTileName(
unsigned int wgs84_lod,
double x_coord,
double y_coord,
86 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
87 std::string& tile_name,
CDBTileCache* TileCachePtr,
bool exitIfGeocellDoesNotExist =
false);
90 std::string getTileFullPath(
int lat,
int lon,
91 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
92 int lod,
int uref,
int rref,
bool secondaryExt =
false)
const;
96 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
97 int lod,
bool secondaryExt =
false)
const;
100 std::string getTileFolder(
const CDBTileVerbose& key,
const std::string& lod_string,
int CdbDatasetCode)
const;
104 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
105 const std::string& lod_string,
106 const std::string& FACC,
const std::string& FSC,
const std::string& modelName)
const;
110 int CdbDatasetCode,
int CdbComponentSelector1,
int CdbComponentSelector2,
111 const std::string& lod_string,
bool secondaryExt =
false)
const;
114 std::string getLodString(
int lod)
const;
117 std::string getLodFolderString(
int lod)
const;
120 std::string getLatString(
double lat)
const;
123 std::string getLatString(
int lat)
const;
126 std::string getLonString(
double lat,
double lon,
int& DLonZone)
const;
129 std::string getLonString(
int lon)
const;
132 std::string getUrefString(
int uref)
const;
135 std::string getRrefString(
int rref)
const;
138 void getRrefString(
double lat,
double lon,
int cdb_lod, std::string& uref_string, std::string& rref_string)
const;
CDB Tile cache manager Used by CDBTileSource to try to avoid reading the the same CDB tile many time ...
Definition: DtCDBTileCache.h:34
used to export/import dll function from this dll to another (osgdb_osgearth_cdb)
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::string myCdbRootDir
CDB root folder from the .earth file.
Definition: DtCDBTile.h:144
Class used to find CDB Tiles information.
Definition: DtCDBTile.h:52
Utility class to pass CDB lat/lon/ured/rref) values.
Definition: DtCDBTileVerbose.h:17
CDBDatasets * myCDBDatasets
CDB Dataset information manager.
Definition: DtCDBTile.h:147
CDB Dataset class.
Definition: DtCDBDatasets.h:78