21 #ifndef EMODNET_QMGC_QUANTIZED_MESH_TILES_PYRAMID_BUILDER_H 22 #define EMODNET_QMGC_QUANTIZED_MESH_TILES_PYRAMID_BUILDER_H 25 #include "tin_creation/tin_creation_cgal_types.h" 26 #include "quantized_mesh_tiler.h" 27 #include "zoom_tiles_scheduler.h" 28 #include "zoom_tiles_border_vertices_cache.h" 32 #include "borders_data.h" 46 typedef typename TinCreation::Point_3 Point_3;
65 void createTmsPyramid(
const int &startZoom,
const int &endZoom,
const std::string &outDir,
const std::string &debugDir = std::string(
"")) ;
79 const std::string &mainOutDir ) ;
92 const std::string& outDir,
105 std::vector<QuantizedMeshTiler> m_tilers ;
107 std::vector<ctb::TilePoint> m_tilesWaitingToProcess ;
110 std::string m_debugDir ;
111 std::mutex m_diskWriteMutex;
118 std::string getDebugTileFileAndCreateDirs(
const ctb::TileCoordinate &coord ) ;
123 #endif //EMODNET_QMGC_QUANTIZED_MESH_TILES_PYRAMID_BUILDER_H static std::string getTileFileAndCreateDirs(const ctb::TileCoordinate &coord, const std::string &mainOutDir)
Check if the tile folder (zoom/x) exists, and creates it otherwise.
Definition: quantized_mesh_tiles_pyramid_builder.cpp:264
BordersData createTile(const ctb::TileCoordinate &coord, const int &numThread, const std::string &outDir, const BordersData &bd)
Create the required tile, in the given thread, and with the given data at the borders to maintain...
Definition: quantized_mesh_tiles_pyramid_builder.cpp:237
Context class: Allows to change the algorithm at runtime.
Definition: zoom_tiles_scheduler.h:84
bool getNextTileToProcess(ctb::TilePoint &tileXY)
Definition: quantized_mesh_tiles_pyramid_builder.cpp:199
Structure storing the data for the borders of a tile. This includes the 4 east-west-north-south borde...
Definition: borders_data.h:30
void createTmsPyramidUnconstrainedBorders(const int &startZoom, const int &endZoom, const std::string &outDir, const std::string &debugDir=std::string(""))
Creates the tile pyramid in quantized-mesh format without taking into account coherence along neighbo...
Definition: quantized_mesh_tiles_pyramid_builder.cpp:129
void createTmsPyramid(const int &startZoom, const int &endZoom, const std::string &outDir, const std::string &debugDir=std::string(""))
Creates the tile pyramid in quantized-mesh format.
Definition: quantized_mesh_tiles_pyramid_builder.cpp:40
Cache to store/reuse the vertices at the borders for tiles that have been already constructed for a g...
Definition: zoom_tiles_border_vertices_cache.h:38
QuantizedMeshTilesPyramidBuilder(const std::vector< QuantizedMeshTiler > &qmTilers, const ZoomTilesScheduler &scheduler)
Definition: quantized_mesh_tiles_pyramid_builder.cpp:29
Contains the logic to create the pyramid of tiles in quantized mesh format.
Definition: quantized_mesh_tiles_pyramid_builder.h:43