[SERVER-1246] Wrong collections for geospatial $within $center Created: 17/Jun/10 Updated: 04/Jul/10 Resolved: 17/Jun/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alex | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu karmic 9.10 |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
[PHP] Returns results upto 150 miles away - [MONGO-SHELL] }}) Returns the same results upto 150 miles away. The table was built form a mysql import where it returns the correct results so I know the data is correct if that helps at all |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 17/Jun/10 ] |
|
Reminder - radius is in lat/lng so 1=~70 miles |
| Comment by Alex [ 17/Jun/10 ] |
|
Here is the data that is being sent to the server (in Json) - which looks correct to me. {"loc":{"$within": {"$center":[[51.5221425,-0.1098127],10]}}} Here is the data it returns (first 20 anyway) |