MCPcopy Create free account
hub / github.com/comaps/comaps / PointToString

Function PointToString

libs/kml/serdes_common.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{
14
15std::string PointToString(m2::PointD const & org, char const separator)
16{
17 double const lon = mercator::XToLon(org.x);
18 double const lat = mercator::YToLat(org.y);
19
20 std::ostringstream ss;
21 ss.precision(8);
22
23 ss << lon << separator << lat;
24 return ss.str();
25}
26
27std::string PointToLineString(geometry::PointWithAltitude const & pt)
28{

Callers 2

PointToLineStringFunction · 0.85
PointToGxStringFunction · 0.85

Calls 2

XToLonFunction · 0.85
YToLatFunction · 0.85

Tested by

no test coverage detected