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

Karl Wright commented on LUCENE-6776:
-------------------------------------

The analysis: The Z bound is unaffected.  The X and Y bounds, however, are 
being computed improperly due to a wrong assumption I made when deriving the 
method for computing them. They work for spheres accurately, and they work with 
increasing inaccuracy for increasingly non-spherical ellipsoids.

The only fix is to derive an accurate formula for the min/max in X and in Y.  I 
believe this is doable, but I'll have to actually do it before I'm sure.  Due 
to other time constraints, this is not likely to be ready for at least a day.

Meanwhile, the value of FUDGE_FACTOR chosen is adequate for WGS84, but will not 
stand up to any planet model that is more oblate than that.  When a true fix is 
in place, FUDGE_FACTOR may be reducible to a very small value.

> Randomized planet model shows up additional XYZBounds errors
> ------------------------------------------------------------
>
>                 Key: LUCENE-6776
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6776
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial
>            Reporter: Karl Wright
>         Attachments: LUCENE-6776.patch
>
>
> Adding randomized PlanetModel construction causes points to be generated 
> inside a shape that are outside XYZBounds.  [~mikemccand] please take note.



--
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