Details
-
Bug
-
Resolution: Incomplete
-
Major - P3
-
None
-
2.6.3
-
None
-
Ubuntu 14.04 , Mongo 2.6.3
-
Linux
-
Description
If you try to find docs inside sphere limits (|x|<=179.9, |y|<89.9 as documentation says) you won't get expected results.
This bug affects also "borders query", like if you want query for NE side of the world you get wrong results. bbox ( [0,0] , [179.9, 89.9] )
Indexs:
db.mycoll.getIndexes()
|
[
|
{
|
"v" : 1,
|
"key" : {
|
"_id" : 1
|
},
|
"name" : "_id_",
|
"ns" : "grid_cluster.mycoll"
|
},
|
{
|
"v" : 1,
|
"key" : {
|
"geometry" : "2dsphere",
|
"properties.rank" : -1
|
},
|
"name" : "geometry_2dsphere_properties.rank_-1",
|
"ns" : "grid_cluster.mycoll",
|
"2dsphereIndexVersion" : 2
|
}
|
]
|
One of my geoJSON docs:
{ "_id" : ObjectId("53c11c778bfd09820bdc997c"), "type" : "Feature", "geometry" : { "type" : "Polygon", "coordinates" : [ [ [ 180, -33.75 ], [ 168.75, -33.75 ], [ 168.75, -28.125 ], [ 180, -28.125 ], [ 180, -33.75 ] ] ] }, "properties" : { "rank" : 0 } }
|