[ 
https://issues.apache.org/jira/browse/LUCENE-7158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221517#comment-15221517
 ] 

ASF subversion and git services commented on LUCENE-7158:
---------------------------------------------------------

Commit 48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3 in lucene-solr's branch 
refs/heads/branch_6_0 from Mike McCandless
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=48c80f9 ]

LUCENE-7158: use the same value (from WGS84) for earth's mean radius when we 
approximate it as a sphere

Conflicts:
        
lucene/sandbox/src/test/org/apache/lucene/document/TestLatLonPointDistanceSort.java
        lucene/spatial/src/java/org/apache/lucene/spatial/util/GeoUtils.java
        
lucene/spatial/src/test/org/apache/lucene/spatial/util/BaseGeoPointTestCase.java
        lucene/spatial/src/test/org/apache/lucene/spatial/util/TestGeoUtils.java
        lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DPoint.java
        
lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java


> Haversin should use the earth's mean radius, not its max (equitorial)?
> ----------------------------------------------------------------------
>
>                 Key: LUCENE-7158
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7158
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>             Fix For: master, 6.0
>
>         Attachments: LUCENE-7158.patch, LUCENE-7158.patch
>
>
> Across our spatial modules we seem to disagree about the earth's radius when 
> we model it as a sphere.
> I think in our haversin implementation we use equitorial (maximum) radius, 
> but maybe in spatial3d we use the earth's mean radius.
> I think mean makes more sense: the earth is actually a squashed sphere, so 
> it's polar radius is shorter than its equitorial radius.
> I think it's important, when we model the earth as a sphere, that we pick one 
> radius and try to use that one consistently?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to