Use BigMin instead of NaiveBigMin in spatial queries of SQLite and LevelDB backend.

This commit is contained in:
Sascha L. Teichmann 2014-09-07 10:51:57 +02:00
parent 8d4f73429f
commit b40eb0021c
2 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ func (ldbs *LevelDBSession) interleavedSpatialQuery(first, second []byte, done c
} }
it.Next() it.Next()
} else { } else {
it.Seek(common.ToBigEndian(common.NaiveBigMin(zmin, zmax, zcode))) it.Seek(common.ToBigEndian(common.BigMin(zmin, zmax, zcode)))
} }
} }
if err = it.GetError(); err != nil { if err = it.GetError(); err != nil {

View File

@ -353,7 +353,7 @@ func (ss *SqliteSession) interleavedSpatialQuery(first, second []byte, done chan
} }
} else { // Left the cuboid } else { // Left the cuboid
rows.Close() rows.Close()
zmin = common.NaiveBigMin(zmin, zmax, zcode) zmin = common.BigMin(zmin, zmax, zcode)
continue OUTER continue OUTER
} }
} }