From 6f5d401af910ac8e28fdaa65aa04b385f799836b Mon Sep 17 00:00:00 2001 From: Mikhail Gorbushin Date: Mon, 21 Oct 2019 22:57:02 +0300 Subject: [geometry] Get rid of MercatorBounds, refactor to namespace mercator --- openlr/decoded_path.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openlr/decoded_path.cpp') diff --git a/openlr/decoded_path.cpp b/openlr/decoded_path.cpp index 29702c41da..c6c19c3737 100644 --- a/openlr/decoded_path.cpp +++ b/openlr/decoded_path.cpp @@ -109,7 +109,7 @@ void WriteAsMappingForSpark(std::ostream & ost, std::vector const & << kFieldSep << fid.m_index << kFieldSep << it->GetSegId() << kFieldSep << (it->IsForward() ? "fwd" : "bwd") - << kFieldSep << MercatorBounds::DistanceOnEarth(GetStart(*it), GetEnd(*it)); + << kFieldSep << mercator::DistanceOnEarth(GetStart(*it), GetEnd(*it)); if (next(it) != end(p.m_path)) ost << kSegmentSep; @@ -137,8 +137,8 @@ void PathFromXML(pugi::xml_node const & node, DataSource const & dataSource, Pat p.push_back(Edge::MakeReal( fid, isForward, segmentId, - routing::Junction(MercatorBounds::FromLatLon(start), feature::kDefaultAltitudeMeters), - routing::Junction(MercatorBounds::FromLatLon(end), feature::kDefaultAltitudeMeters))); + routing::Junction(mercator::FromLatLon(start), feature::kDefaultAltitudeMeters), + routing::Junction(mercator::FromLatLon(end), feature::kDefaultAltitudeMeters))); } } @@ -158,8 +158,8 @@ void PathToXML(Path const & path, pugi::xml_node & node) { auto start = edge.append_child("StartJunction"); auto end = edge.append_child("EndJunction"); - LatLonToXML(MercatorBounds::ToLatLon(GetStart(e)), start); - LatLonToXML(MercatorBounds::ToLatLon(GetEnd(e)), end); + LatLonToXML(mercator::ToLatLon(GetStart(e)), start); + LatLonToXML(mercator::ToLatLon(GetEnd(e)), end); } } } -- cgit v1.2.3