Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit b639096a76de87adaf0e62e28e29b1155ba944a9 Author: Richard Kreuter <richard@10gen.com> Date: Tue May 11 13:53:26 2010 -0400 Replace sizeDiag calls w/sizeEdge; add a test. SERVER-994 commit 75b0a08c96bfd6e1a7e7a6d002dd2391d0433575 Author: Richard Kreuter <richard@10gen.com> Date: Fri May 7 16:29:48 2010 -0400 Rename mongo::Geo2dType::size() to ::sizeDiag(); add a sizeEdge(). SERVER-994
- Loading branch information
Richard Kreuter
committed
May 11, 2010
1 parent
c513597
commit 6845ac0
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
t=db.geo_box3; | ||
|
||
t.drop(); | ||
// SERVER-994 | ||
db.foo.insert({ point : { x : -15, y : 10 } }); | ||
db.foo.ensureIndex( { point : "2d" } , { min : -21 , max : 21 } ); | ||
db.foo.find({point: {"$within": {"$box": [[-20, 7], [0, 15]]} } }); |