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

Function IsRealVertex

tools/openlr/openlr_decoder.cpp:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88bool IsRealVertex(m2::PointD const & p, FeatureID const & fid, DataSource const & dataSource)
89{
90 FeaturesLoaderGuard g(dataSource, fid.m_mwmId);
91 auto const ft = g.GetOriginalFeatureByIndex(fid.m_index);
92 bool matched = false;
93 ft->ForEachPoint([&p, &matched](m2::PointD const & fp)
94 {
95 if (p == fp)
96 matched = true;
97 }, FeatureType::BEST_GEOMETRY);
98 return matched;
99}
100
101void ExpandFake(Graph::EdgeVector & path, Graph::EdgeVector::iterator edgeIt, DataSource const & dataSource, Graph & g)
102{

Callers 1

ExpandFakeFunction · 0.85

Calls 2

ForEachPointMethod · 0.45

Tested by

no test coverage detected