alaCarte Maps
Renderer for OpenStreetMap tiles
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 
44 {
45  return location;
46 }
FixedPoint location
Definition: node.hpp:47
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
TESTABLE const FixedPoint & getLocation() const
Definition: node.cpp:43
Node()=default