1
0
Fork 0

fix nextBabies for within

This commit is contained in:
Jan Christoph Uhde 2016-12-20 12:32:43 +01:00
parent 9ecd4665c7
commit e393b5338e
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ void GeoIndexIterator::nextBabies(std::vector<IndexLookupResult>& result, size_t
for (std::size_t index = 0; index < length; ++index) {
if ( _near
|| (!_withinLessEq && GeoIndex_distance(&_coor, &coords->coordinates[0]) < _withinRange)
|| ( _withinLessEq && GeoIndex_distance(&_coor, &coords->coordinates[0]) <= _withinRange)
|| (!_withinLessEq && GeoIndex_distance(&_coor, &coords->coordinates[index]) < _withinRange)
|| ( _withinLessEq && GeoIndex_distance(&_coor, &coords->coordinates[index]) <= _withinRange)
)
{
result.emplace_back(IndexLookupResult(::GeoIndex::toRevision(coords->coordinates[index].data)));