alaCarte Maps
Renderer for OpenStreetMap tiles
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
transform.hpp
Go to the documentation of this file.
1
21
#pragma once
22
#ifndef TRANSFORM_HPP
23
#define TRANSFORM_HPP
24
25
#include "
settings.hpp
"
26
27
#include <
utils/point.hpp
>
28
29
void
tileToMercator
(
int
tx,
int
ty,
int
zoom,
coord_t
& x,
coord_t
& y);
30
void
mercatorToTile
(
coord_t
x,
coord_t
y,
int
zoom,
int
& tx,
int
& ty);
31
32
void
projectMercator
(
const
FloatPoint
& p,
coord_t
& x,
coord_t
& y);
33
void
inverseMercator
(
const
FixedPoint
& p,
double
& lat,
double
& lon);
34
35
void
rot
(uint32_t n,
FixedPoint
& p,
bool
rx,
bool
ry);
36
uint64_t
xy2hilbert
(
FixedPoint
p);
37
38
#endif
point.hpp
xy2hilbert
uint64_t xy2hilbert(FixedPoint p)
Definition:
transform.cpp:137
coord_t
std::int32_t coord_t
Definition:
settings.hpp:117
settings.hpp
basic_vector2< double >
tileToMercator
void tileToMercator(int tx, int ty, int zoom, coord_t &x, coord_t &y)
converts tile coordinates to north-west corner of the tile in the Mercator projection.
Definition:
transform.cpp:52
inverseMercator
void inverseMercator(const FixedPoint &p, double &lat, double &lon)
converts cooridinates in lat/lon (WGS84) to spherical Mercator (EPSG:3857).
Definition:
transform.cpp:102
rot
void rot(uint32_t n, FixedPoint &p, bool rx, bool ry)
projectMercator
void projectMercator(const FloatPoint &p, coord_t &x, coord_t &y)
converts cooridinates in lat/lon (WGS84) to spherical Mercator (EPSG:3857).
Definition:
transform.cpp:87
mercatorToTile
void mercatorToTile(coord_t x, coord_t y, int zoom, int &tx, int &ty)
converts mercator coordinates to the coords of the tile they are contained in.
Definition:
transform.cpp:73
include
utils
transform.hpp
Generated on Thu May 24 2018 16:14:00 for alaCarte Maps by
1.8.11