Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::TileMapper Class Reference

Public Member Functions

 TileMapper (TileCacheSpec tileCacheSpec)
 
TileId getTileId (const BasicGeoTypes::GeoPos &pos, const uint8_t tileLevel) const
 
BasicGeoTypes::GeoRect getTileExtents (TileId tileId)
 
int calcTileLevel (const BasicGeoTypes::GeoPos &vpCenter, const double vpResolution) const
 Calculate the tile level required to cover the viewport.
 
size_t getTileSize () const noexcept
 
std::string getProjectionString () const noexcept
 

Member Function Documentation

◆ calcTileLevel()

int TileMapper::calcTileLevel ( const BasicGeoTypes::GeoPos vpCenter,
const double  vpResolution 
) const

Calculate the tile level required to cover the viewport.

Parameters
vpCenterThe viewport center
vpResolutionThe viewport resolution
Returns
The tile level of the viewport, -1 if not found

The documentation for this class was generated from the following files: