[SERVER-12128] Inconsistent Earth radius used in tests / documentation Created: 16/Dec/13  Updated: 19/Sep/15  Resolved: 23/Mar/15

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: 3.1.1

Type: Bug Priority: Trivial - P5
Reporter: Rich Parrish Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-5038 fix radius of the earth to reflect co... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

MongoDB tests and documentation utilize mean Earth radius (6371km) rather than equatorial radius (6378.1km). Because Earth is not a perfect sphere, mean radius may be a more appropriate constant.

The constant within MongoDB source code is 6378.1 km (equatorial).



 Comments   
Comment by Githook User [ 23/Mar/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-12128 Inconsistent earth radius used in tests

Resolves #580
Branch: master
https://github.com/mongodb/mongo/commit/565f050f414888a8ebcc3f3cc4fe6dc737e75271

Comment by Greg Studer [ 28/Apr/14 ]

Current indexes mean we can't change this value easily - but in the future one might see a use for spherical indexes with different radii as a parameter.

Generated at Thu Feb 08 03:27:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.