[DOCS-5038] fix radius of the earth to reflect constants in code Created: 17/Mar/15  Updated: 27/Jul/16  Resolved: 18/Mar/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-3.0
Fix Version/s: mongodb-2.4, mongodb-2.6, mongodb-3.0

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Michael Paik
Resolution: Done Votes: 0
Labels: geo
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-12128 Inconsistent Earth radius used in tes... Closed
Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

Please see:

https://github.com/mongodb/mongo/pull/588

The code uses 6378.1 km as the radius of the earth. (3963.17 in miles)

https://github.com/mongodb/mongo/blob/master/src/mongo/db/geo/geoconstants.h

Could you update the documentation to reflect this value? I've found the following instances where the inconsistent value of 6371 km (3959 miles) is referenced.

http://docs.mongodb.org/manual/tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes/

http://docs.mongodb.org/manual/reference/operator/query/centerSphere/

http://docs.mongodb.org/manual/tutorial/query-a-2d-index/

http://docs.mongodb.org/manual/tutorial/query-a-2dsphere-index/



 Comments   
Comment by Emily Hall [ 27/Jul/16 ]

Closed for housekeeping on 7/27/2016 by Emily Hall.
If you require additional support, please open a new ticket for prioritization.
Thanks,
Emily

Comment by Michael Paik [ 18/Mar/15 ]

Reopened.

Comment by Benety Goh [ 18/Mar/15 ]

michael.paik,

That DOCS pull request pretty much covers the changes needed. Could we reopen it for review?

Comment by Michael Paik [ 17/Mar/15 ]

benety.goh, does this PR by rps cover the changes?

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