mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-17 15:48:17 +01:00
Use BigMin instead of NaiveBigMin in spatial queries of SQLite and LevelDB backend.
This commit is contained in:
parent
8d4f73429f
commit
b40eb0021c
@ -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 {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user