|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/util/TileId.h>
Public Member Functions | |
| TileId (uint32_t x, uint32_t y) | |
| uint32_t | GetX () const |
| uint32_t | GetY () const |
| Pixel | AsPixel () const |
| std::string | GetDisplayText () const |
| bool | operator== (const TileId &other) const |
| bool | operator!= (const TileId &other) const |
| bool | operator< (const TileId &other) const |
| GeoCoord | GetTopLeftCoord (const Magnification &magnification) const |
| GeoBox | GetBoundingBox (const MagnificationLevel &level) const |
| GeoBox | GetBoundingBox (const Magnification &magnification) const |
Static Public Member Functions | |
| static TileId | GetTile (const Magnification &magnification, const GeoCoord &coord) |
| static TileId | GetTile (const MagnificationLevel &level, const GeoCoord &coord) |
A Tile id, uniquely identifing a tile by its level and (unique for the given level) tile coordinates.
Note that this are libosmscout tiles, that evenly split the whole world into - for each level - equaly sized (regarding their latitude and longitude interval) rectangles.
Classic OSM tiles are calculated differently.
| osmscout::TileId::TileId | ( | uint32_t | x, |
| uint32_t | y ) |
|
inline |
| GeoBox osmscout::TileId::GetBoundingBox | ( | const Magnification & | magnification | ) | const |
| GeoBox osmscout::TileId::GetBoundingBox | ( | const MagnificationLevel & | level | ) | const |
| std::string osmscout::TileId::GetDisplayText | ( | ) | const |
|
static |
|
static |
| GeoCoord osmscout::TileId::GetTopLeftCoord | ( | const Magnification & | magnification | ) | const |
|
inline |
Return the X coordinate fo the tile
|
inline |
Return the y coordinate fo the tile
|
inline |
Compare tile ids for inequality
|
inline |
Compare tile ids by their order. Needed for sorting tile ids and placing them into (some) containers.
|
inline |
Compare tile ids for equality