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

Method GetMercatorPoints

tools/openlr/openlr_model.cpp:12–19  ·  view source on GitHub ↗

LinearSegment -----------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

10{
11// LinearSegment -----------------------------------------------------------------------------------
12vector<m2::PointD> LinearSegment::GetMercatorPoints() const
13{
14 vector<m2::PointD> points;
15 points.reserve(m_locationReference.m_points.size());
16 for (auto const & point : m_locationReference.m_points)
17 points.push_back(mercator::FromLatLon(point.m_latLon));
18 return points;
19}
20
21vector<LocationReferencePoint> const & LinearSegment::GetLRPs() const
22{

Callers 2

DecodeSegmentMethod · 0.80
OnItemSelectedMethod · 0.80

Calls 4

FromLatLonFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected