[SERVER-3038] Spherical distance trying to wrap when not required Created: 04/May/11 Updated: 30/Mar/12 Resolved: 09/May/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 1.8.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Damien Vouriot | Assignee: | Greg Studer |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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 |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Here is what I am trying to do : ) > db.locations.ensureIndex( { loc : "2d" } ) }}) I checked this bug https://jira.mongodb.org/browse/SERVER-2408 I got the same error with following centers : 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 |
| Comments |
| Comment by Damien Vouriot [ 09/May/11 ] |
|
I confirm, it was the issue, my mistake, sorry Thanks |
| Comment by Greg Studer [ 09/May/11 ] |
|
Spherical queries take coordinates in longitude (-180, 180) / latitude (-90, 90) terms. Seems like you have yours reversed, which results in this (admittedly obscure) error - see |