[SERVER-13540] The geoNear command no longer returns distance in radians for legacy points Created: 10/Apr/14 Updated: 11/Jul/16 Resolved: 16/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 2.6.0 |
| Fix Version/s: | 2.6.1, 2.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Thomas Darimont | Assignee: | Greg Studer |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||
| Backport Completed: | |||||||||||||||||||
| Steps To Reproduce: |
The following commands executed against mongodb 2.4.9 result in:
The following commands executed against mongodb 2.6.0 result in:
|
||||||||||||||||||
| Participants: | |||||||||||||||||||
| Description |
|
Issue Status as of April 17, 2014 ISSUE SUMMARY In 2.4 the geoNear command returned the distance in radians for legacy coordinate pairs. In 2.6, this behavior changed and the geoNear command returned the result in meters. This behavior change was unintentional and needs to be reverted. USER IMPACT WORKAROUNDS RESOLUTION AFFECTED VERSIONS PATCHES Original descriptionIt seems that the distance metric for handling legacy points has changed from mongodb 2.4.x to 2.6.0. Previously the distance in geoNear queries for legacy points was returned as radians - since 2.6.0 it is now returned in meters. Since this behaviour is not listed in the incompatibility / changes list and could be seen as a breaking change I suppose that this is a bug. See also here: |
| Comments |
| Comment by Githook User [ 16/Apr/14 ] |
|
Author: {u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}Message: |
| Comment by Githook User [ 16/Apr/14 ] |
|
Author: {u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}Message: |
| Comment by Greg Studer [ 14/Apr/14 ] |
|
Confirmed. |