Functions | Variables
mercator.h File Reference
#include <cmath>
Include dependency graph for mercator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double getTileWH (double const latitude, int const zoom)
 
int zoomToMaxTiles (int zoom)
 
float zoomToResolution (double lat, int zoom)
 

Variables

static constexpr int MAX_BLOCKS = 8
 Max number of adjacent blocks to support. More...
 
static constexpr int MAX_ZOOM = 22
 Max zoom level to support. More...
 

Function Documentation

◆ getTileWH()

double getTileWH ( double const  latitude,
int const  zoom 
)
inline

Calculate the tile width/height in meter

Definition at line 50 of file mercator.h.

◆ zoomToMaxTiles()

int zoomToMaxTiles ( int  zoom)
inline

Maximum number of tiles for the zoom level in one direction

Definition at line 42 of file mercator.h.

◆ zoomToResolution()

float zoomToResolution ( double  lat,
int  zoom 
)
inline

Convert latitude and zoom level to ground resolution. Resolution is how many meters per pixel are covered by a tile.

See also
https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Resolution_and_Scale

Definition at line 31 of file mercator.h.

Variable Documentation

◆ MAX_BLOCKS

constexpr int MAX_BLOCKS = 8
static

Max number of adjacent blocks to support.

Definition at line 20 of file mercator.h.

◆ MAX_ZOOM

constexpr int MAX_ZOOM = 22
static

Max zoom level to support.

Definition at line 23 of file mercator.h.



rviz_satellite
Author(s): Gareth Cross , Andre Schröder
autogenerated on Thu May 4 2023 02:31:43