Classes | Typedefs | Functions
coordinates.h File Reference
#include <cmath>
#include <stdexcept>
#include <string>
#include <tuple>
#include "mercator.h"
Include dependency graph for coordinates.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TileCoordinateGeneric< NumericType >
 
struct  WGSCoordinate
 

Typedefs

using TileCoordinate = TileCoordinateGeneric< int >
 

Functions

template<typename NumericType = int>
TileCoordinateGeneric< NumericType > fromWGSCoordinate (WGSCoordinate coord, int zoom)
 
template<typename NumericType >
bool operator<= (TileCoordinateGeneric< NumericType > self, TileCoordinateGeneric< NumericType > other)
 
template<typename NumericType >
bool operator== (TileCoordinateGeneric< NumericType > self, TileCoordinateGeneric< NumericType > other)
 
template<typename NumericType >
bool operator>= (TileCoordinateGeneric< NumericType > self, TileCoordinateGeneric< NumericType > other)
 
template<typename NumericType = int>
WGSCoordinate toWGSCoordinate (TileCoordinateGeneric< NumericType > coord, int zoom)
 

Typedef Documentation

◆ TileCoordinate

Definition at line 108 of file coordinates.h.

Function Documentation

◆ fromWGSCoordinate()

template<typename NumericType = int>
TileCoordinateGeneric<NumericType> fromWGSCoordinate ( WGSCoordinate  coord,
int  zoom 
)

Convert lat/ lon to a tile coordinate with the Mercator projection.

See also
https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames for explanation of these calculations.

Definition at line 52 of file coordinates.h.

◆ operator<=()

template<typename NumericType >
bool operator<= ( TileCoordinateGeneric< NumericType >  self,
TileCoordinateGeneric< NumericType >  other 
)

Definition at line 103 of file coordinates.h.

◆ operator==()

template<typename NumericType >
bool operator== ( TileCoordinateGeneric< NumericType >  self,
TileCoordinateGeneric< NumericType >  other 
)

Definition at line 93 of file coordinates.h.

◆ operator>=()

template<typename NumericType >
bool operator>= ( TileCoordinateGeneric< NumericType >  self,
TileCoordinateGeneric< NumericType >  other 
)

Definition at line 98 of file coordinates.h.

◆ toWGSCoordinate()

template<typename NumericType = int>
WGSCoordinate toWGSCoordinate ( TileCoordinateGeneric< NumericType >  coord,
int  zoom 
)

Convert tile coordinate to lat/lon.

See also
https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames for explanation of these calculations.

Definition at line 83 of file coordinates.h.



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