boat
C++23 geospatial library
Loading...
Searching...
No Matches
boat::tile Struct Reference

#include <tile.hpp>

Public Member Functions

geometry::raster::box rect (geometry::raster::point ext) const
 Clips the tile window to the raster extent.
auto affine (geometry::raster::point ext) const
 Maps tile pixels to raster pixels.

Static Public Member Functions

static int zmax (geometry::raster::point ext)
 One raster pixel per tile pixel.
static int zoom (geometry::raster::point ext, double scale)
static int scale (geometry::raster::point ext, int zoom)
 Raster pixels per tile pixel.
static std::generator< tile > all (geometry::raster::point ext, int zoom)

Public Attributes

int z
int y
int x

Static Public Attributes

static constexpr int size = 256
 Maximum tile side in pixels.
static constexpr int half_size = size / 2

Friends

auto operator<=> (tile const &, tile const &)=default
auto hash_value (tile const &v)

Member Function Documentation

◆ affine()

auto boat::tile::affine ( geometry::raster::point ext) const
inline

Maps tile pixels to raster pixels.

◆ all()

std::generator< tile > boat::tile::all ( geometry::raster::point ext,
int zoom )
inlinestatic

◆ rect()

geometry::raster::box boat::tile::rect ( geometry::raster::point ext) const
inline

Clips the tile window to the raster extent.

◆ scale()

int boat::tile::scale ( geometry::raster::point ext,
int zoom )
inlinestatic

Raster pixels per tile pixel.

◆ zmax()

int boat::tile::zmax ( geometry::raster::point ext)
inlinestatic

One raster pixel per tile pixel.

◆ zoom()

int boat::tile::zoom ( geometry::raster::point ext,
double scale )
inlinestatic

◆ hash_value

auto hash_value ( tile const & v)
friend

◆ operator<=>

auto operator<=> ( tile const & ,
tile const &  )
friend

Member Data Documentation

◆ half_size

int boat::tile::half_size = size / 2
staticconstexpr

◆ size

int boat::tile::size = 256
staticconstexpr

Maximum tile side in pixels.

◆ x

int boat::tile::x

◆ y

int boat::tile::y

◆ z

int boat::tile::z

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