Fix scale level for geometry during indexing.

This commit is contained in:
vng 2011-01-09 13:34:10 +02:00 committed by Alex Zolotarev
parent 741a005a41
commit 1aa1ef443b

View file

@ -64,7 +64,7 @@ public:
{
if (FeatureShouldBeIndexed(f))
{
vector<int64_t> const cells = covering::CoverFeature(f, m_ScaleRange.second);
vector<int64_t> const cells = covering::CoverFeature(f, m_ScaleRange.second-1);
for (vector<int64_t>::const_iterator it = cells.begin(); it != cells.end(); ++it)
m_Sorter.Add(CellFeaturePair(*it, offset));
++m_NumFeatures;