alaCarte Maps
Renderer for OpenStreetMap tiles
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
node.cpp
Go to the documentation of this file.
1
22
/*
23
* =====================================================================================
24
*
25
* Filename: node.cpp
26
*
27
* Description: class node defines a Node for alacarte.
28
*
29
* =====================================================================================
30
*/
31
32
33
#include "
general/node.hpp
"
34
#include "
utils/transform.hpp
"
35
36
Node::Node
(
const
FloatPoint
& sphereLocation,
const
DataMap<CachedString, CachedString>
& tags)
37
:
GeoObject
(tags)
38
{
39
projectMercator
(sphereLocation,
location
.
x
,
location
.
y
);
40
}
41
42
43
const
FixedPoint
&
Node::getLocation
()
const
44
{
45
return
location
;
46
}
Node::location
FixedPoint location
Definition:
node.hpp:47
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
Node::getLocation
TESTABLE const FixedPoint & getLocation() const
Definition:
node.cpp:43
GeoObject
Definition:
geo_object.hpp:33
basic_vector2< double >
basic_vector2::y
T y
Definition:
point.hpp:89
transform.hpp
Node::Node
Node()=default
basic_vector2::x
T x
Definition:
point.hpp:88
node.hpp
DataMap< CachedString, CachedString >
src
general
node.cpp
Generated on Thu May 24 2018 16:14:00 for alaCarte Maps by
1.8.11