Tiler of a terrain generating quantized-mesh tiles.
More...
#include <quantized_mesh_tiler.h>
Tiler of a terrain generating quantized-mesh tiles.
◆ createTile()
Create the quantized mesh tile.
Create the quantized-mesh tile given the raster enclosed by the coordinates coord
and the vertices to maintain from previous tiles The original full resolution regular grid extracted from the rasters is decimated to obrain a Triangulated Irregular Network (TIN)
Note: the parameters tileEastVertices and tileNorthVertices represent the vertices to maintain from the neighboring tiles on input, but after the function they are output parameters containing the eastern/northen vertices to maintain for the CURRENT tile Take into account that their 3D coordinates represent (u,v), in tile coordinates [0..QuantizedMesh::MAX_VERTEX_DATA], and height, where this height is the raster-extracted height in meters.
- Parameters
-
coord | TileCoordinate. |
bd | Data to preserve for the borders. |
- Returns
- The quantized mesh tile.
◆ getOptions()
◆ getUVHPointsFromRaster()
std::vector< TinCreation::Point_3 > QuantizedMeshTiler::getUVHPointsFromRaster |
( |
const ctb::TileCoordinate & |
coord, |
|
|
BordersData & |
bd, |
|
|
float & |
minHeight, |
|
|
float & |
maxHeight, |
|
|
ctb::CRSBounds & |
tileBounds |
|
) |
| const |
Get the heightmap values from the GDAL raster in normalized coordinates.
- Parameters
-
| coord | The coordinates of the tile |
| bd | Data falling in the borders of the tile. Note: this is not const because border vertices are input as tile coordinates, but are output in uvh coordinates |
[out] | minHeight | Min height on the tile from raster |
[out] | maxHeight | Max height on the tile from raster |
[out] | tileBounds | Output variable containing the tile bounds |
- Returns
- Vector of points in the heightmap
◆ setTinCreatorParamsForZoom()
void QuantizedMeshTiler::setTinCreatorParamsForZoom |
( |
const unsigned int & |
zoom | ) |
|
|
inline |
Sets the TIN creator parameter related with the current zoom level.
- Parameters
-
The documentation for this class was generated from the following files:
- /mnt/Raid1Ext/EMODNET/Code/src/base/quantized_mesh_tiler.h
- /mnt/Raid1Ext/EMODNET/Code/src/base/quantized_mesh_tiler.cpp