diff options
author | vng <viktor.govako@gmail.com> | 2015-10-29 16:24:47 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:26:54 +0300 |
commit | ec181edc2a38e05a292a927949c6d7b96ba98e3f (patch) | |
tree | 25e9061ee1129103959960001e26bbb6dd9be600 /indexer/feature_covering.cpp | |
parent | 5d35ecef20dafb3d81f6ae44adca8a3b470bfd4d (diff) |
Review fixes.
Diffstat (limited to 'indexer/feature_covering.cpp')
-rw-r--r-- | indexer/feature_covering.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/feature_covering.cpp b/indexer/feature_covering.cpp index 29b2459945..d17582210d 100644 --- a/indexer/feature_covering.cpp +++ b/indexer/feature_covering.cpp @@ -206,15 +206,15 @@ void CoverViewportAndAppendLowerLevels(m2::RectD const & r, int cellDepth, Inter RectId GetRectIdAsIs(m2::RectD const & r) { double const eps = MercatorBounds::GetCellID2PointAbsEpsilon(); + using TConverter = CellIdConverter<MercatorBounds, RectId>; - typedef CellIdConverter<MercatorBounds, RectId> TConverter; RectId const id = TConverter::Cover2PointsWithCell( MercatorBounds::ClampX(r.minX() + eps), MercatorBounds::ClampY(r.minY() + eps), MercatorBounds::ClampX(r.maxX() - eps), MercatorBounds::ClampY(r.maxY() - eps)); - // Calling this function make sence only for rects that are equal with index cells. + // Calling this function makes sence only for rects that are equal with index cells. // Check it here ... #ifdef DEBUG double minX, minY, maxX, maxY; @@ -253,16 +253,16 @@ IntervalsT const & CoveringGetter::Get(int scale) while (id.Level() >= cellDepth) id = id.Parent(); AppendLowerLevels(id, cellDepth, m_res[ind]); -/* -#ifdef DEBUG + + // Check for optimal result intervals. +#if 0 size_t oldSize = m_res[ind].size(); IntervalsT res; SortAndMergeIntervals(m_res[ind], res); if (res.size() != oldSize) - LOG(LDEBUG, ("Old =", oldSize, "; New =", res.size())); + LOG(LINFO, ("Old =", oldSize, "; New =", res.size())); res.swap(m_res[ind]); #endif -*/ break; } |