diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-03-01 16:50:03 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-03-01 16:50:03 -0500 |
commit | 119b5afae8a3908f523ef4a2dbb5f0ff7ef8feff (patch) | |
tree | 7025882bab86c51fc67836eb3f7a5472030b0258 /jstests/geo8.js | |
parent | e33b79fb107455ca2c6d534610a7d0c0f41a13e7 (diff) | |
download | mongo-119b5afae8a3908f523ef4a2dbb5f0ff7ef8feff.tar.gz |
use BinData for GeoHash for footprint size
Diffstat (limited to 'jstests/geo8.js')
-rw-r--r-- | jstests/geo8.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/jstests/geo8.js b/jstests/geo8.js new file mode 100644 index 00000000000..301f3bcc0d1 --- /dev/null +++ b/jstests/geo8.js @@ -0,0 +1,13 @@ + +t = db.geo8 +t.drop() + +t.insert( { loc : [ 5 , 5 ] } ) +t.insert( { loc : [ 5 , 6 ] } ) +t.insert( { loc : [ 5 , 7 ] } ) +t.insert( { loc : [ 4 , 5 ] } ) +t.insert( { loc : [ 100 , 100 ] } ) + +t.ensureIndex( { loc : "2d" } ) + +t.runCommand( "geoWalk" ); |