Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Gorbushin <m.gorbushin@corp.mail.ru>2019-10-21 22:57:02 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2019-11-01 11:09:30 +0300
commit6f5d401af910ac8e28fdaa65aa04b385f799836b (patch)
tree1157fd824b4026b8a40ebfde3a9afe8805b4b23d /openlr/decoded_path.cpp
parent216c9444f584f7f293381389502d11f8991bb4b6 (diff)
[geometry] Get rid of MercatorBounds, refactor to namespace mercator
Diffstat (limited to 'openlr/decoded_path.cpp')
-rw-r--r--openlr/decoded_path.cpp10
1 files changed, 5 insertions, 5 deletions
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<DecodedPath> 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);
}
}
}