-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.8.0
-
Component/s: Geo
-
None
-
Environment:Linux 2.6.36-ARCH #1 SMP PREEMPT Fri Dec 10 20:32:37 CET 2010 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Here is what I am trying to do :
> db.locations.save(
)
> db.locations.find()
> db.locations.ensureIndex(
{ loc : "2d" } )
> db.locations.find({loc : { $within :
}})
error: {
"$err" : "Spherical distance would require wrapping, which isn't implemented yet",
"code" : 13462
}
I checked this bug https://jira.mongodb.org/browse/SERVER-2408
But in my case, I am not trying to use large distance.
I got the same error with following centers :
[-33.8726005554199, 151.195999145508]
[13.7576999664307, 100.490997314453]
and even with shorter distance.
As I am not sure about the expected behavior, and when wrapping is required, apologize if this is not a bug