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

Function GetCityBoundariesInRectForTesting

libs/search/cities_boundaries_table.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void GetCityBoundariesInRectForTesting(CitiesBoundariesTable const & table, m2::RectD const & rect,
128 vector<uint32_t> & featureIds)
129{
130 featureIds.clear();
131 for (auto const & kv : table.m_table)
132 {
133 for (auto const & cb : kv.second)
134 {
135 if (rect.IsIntersect(cb.m_bbox.ToRect()))
136 {
137 featureIds.push_back(kv.first);
138 break;
139 }
140 }
141 }
142}
143} // namespace search

Callers 1

Calls 3

clearMethod · 0.45
IsIntersectMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected