ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::PLOT::GeoTiles Class Reference

Class to help with handling of tile servers used for satellite image background tiles. More...

#include <geoTiles.h>

Collaboration diagram for adore::PLOT::GeoTiles:
Collaboration graph

Public Member Functions

 GeoTiles (std::string base_url, double width_meters)
 
double getWidthM ()
 
std::string getURL (double xUTM, double yUTM)
 
std::string getURL (double X0, double Y0, double X1, double Y1, double res)
 
std::string getURL (std::pair< int, int > id)
 
double getCenterX (std::pair< int, int > id)
 
double getCenterY (std::pair< int, int > id)
 
std::pair< int, int > getTileID (double xUTM, double yUTM)
 
bool overlapsBox (std::pair< int, int > id, double xUTM0, double yUTM0, double xUTM1, double yUTM1)
 
void getVisibleRange (double xUTM0, double yUTM0, double xUTM1, double yUTM1, int &imin, int &jmin, int &imax, int &jmax)
 
std::string getPlotID (std::pair< int, int > id)
 

Private Member Functions

bool overlaps (double a0, double a1, double b0, double b1)
 

Private Attributes

double width_meters_
 
std::string base_url_
 

Detailed Description

Class to help with handling of tile servers used for satellite image background tiles.

Constructor & Destructor Documentation

◆ GeoTiles()

adore::PLOT::GeoTiles::GeoTiles ( std::string  base_url,
double  width_meters 
)
inline

Member Function Documentation

◆ getCenterX()

double adore::PLOT::GeoTiles::getCenterX ( std::pair< int, int >  id)
inline
Here is the caller graph for this function:

◆ getCenterY()

double adore::PLOT::GeoTiles::getCenterY ( std::pair< int, int >  id)
inline
Here is the caller graph for this function:

◆ getPlotID()

std::string adore::PLOT::GeoTiles::getPlotID ( std::pair< int, int >  id)
inline
Here is the caller graph for this function:

◆ getTileID()

std::pair<int,int> adore::PLOT::GeoTiles::getTileID ( double  xUTM,
double  yUTM 
)
inline

◆ getURL() [1/3]

std::string adore::PLOT::GeoTiles::getURL ( double  X0,
double  Y0,
double  X1,
double  Y1,
double  res 
)
inline
Here is the call graph for this function:

◆ getURL() [2/3]

std::string adore::PLOT::GeoTiles::getURL ( double  xUTM,
double  yUTM 
)
inline
Here is the caller graph for this function:

◆ getURL() [3/3]

std::string adore::PLOT::GeoTiles::getURL ( std::pair< int, int >  id)
inline
Here is the call graph for this function:

◆ getVisibleRange()

void adore::PLOT::GeoTiles::getVisibleRange ( double  xUTM0,
double  yUTM0,
double  xUTM1,
double  yUTM1,
int &  imin,
int &  jmin,
int &  imax,
int &  jmax 
)
inline
Here is the caller graph for this function:

◆ getWidthM()

double adore::PLOT::GeoTiles::getWidthM ( )
inline
Here is the caller graph for this function:

◆ overlaps()

bool adore::PLOT::GeoTiles::overlaps ( double  a0,
double  a1,
double  b0,
double  b1 
)
inlineprivate
Here is the caller graph for this function:

◆ overlapsBox()

bool adore::PLOT::GeoTiles::overlapsBox ( std::pair< int, int >  id,
double  xUTM0,
double  yUTM0,
double  xUTM1,
double  yUTM1 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ base_url_

std::string adore::PLOT::GeoTiles::base_url_
private

◆ width_meters_

double adore::PLOT::GeoTiles::width_meters_
private

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