diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2013-01-10 17:53:16 -0500 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2013-01-11 10:33:36 -0500 |
commit | 2e7a1a24160a09c9de2df4caad0fc9c2a278b998 (patch) | |
tree | 0180087771f801e2ca1c5979762e71c0edb32e2a /jstests/geo_s2edgecases.js | |
parent | 4ba4aae6776c5832fcf613884eaca31382cde7a4 (diff) | |
download | mongo-2e7a1a24160a09c9de2df4caad0fc9c2a278b998.tar.gz |
verify latitude is [-90,90]
Diffstat (limited to 'jstests/geo_s2edgecases.js')
-rwxr-xr-x | jstests/geo_s2edgecases.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/geo_s2edgecases.js b/jstests/geo_s2edgecases.js index 7000841f574..02bd17d8b9f 100755 --- a/jstests/geo_s2edgecases.js +++ b/jstests/geo_s2edgecases.js @@ -15,19 +15,19 @@ t.insert({geo : roundworld2}) // North pole santapoint = { "type" : "Point", "coordinates": [ 180, 90 ] } santa = { "type" : "Polygon", - "coordinates" : [ [ [179,89], [179,91], [181,91], [181,89], [179,89]]]} + "coordinates" : [ [ [179,89], [179,90], [181,90], [181,89], [179,89]]]} t.insert({geo : santa}) santa2 = { "type" : "Polygon", - "coordinates" : [ [ [179,89], [181,89], [181,91], [179,91], [179,89]]]} + "coordinates" : [ [ [179,89], [181,89], [181,90], [179,90], [179,89]]]} t.insert({geo : santa2}) // South pole penguinpoint = { "type" : "Point", "coordinates": [ 0, -90 ] } penguin1 = { "type" : "Polygon", - "coordinates" : [ [ [0,-89], [0,-91], [179,-91], [179,-89], [0,-89]]]} + "coordinates" : [ [ [0,-89], [0,-90], [179,-90], [179,-89], [0,-89]]]} t.insert({geo : penguin1}) penguin2 = { "type" : "Polygon", - "coordinates" : [ [ [0,-89], [179,-89], [179,-91], [0,-91], [0,-89]]]} + "coordinates" : [ [ [0,-89], [179,-89], [179,-90], [0,-90], [0,-89]]]} t.insert({geo : penguin2}) t.ensureIndex( { geo : "2dsphere", nonGeo: 1 } ) |