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

Ignacio Vera commented on LUCENE-8239:
--------------------------------------

It is not a problem on how we construct the planes.

For 1e-5 the plane with fixed Z is chosen and therefore success.

For 1e-6 the plane with fixed X is chosen (because it is first on the if/else 
statements)  and therefore an error. 

(The evaluation of the vector for plane X is ~-1e-15 and for plane Z is 0) I 
guess the fix is to choose the plane with lower evaluation!

 

 

> GeoComplexPolygon fails when test or/and check point are near a pole
> --------------------------------------------------------------------
>
>                 Key: LUCENE-8239
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8239
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>            Reporter: Ignacio Vera
>            Priority: Major
>         Attachments: LUCENE-8239.patch
>
>
> When calling {{within}} method in GeoComplexPolygon you can get errors if the 
> test point of the polygon or the given point is near a pole.
> The reason is that one of the planes defined by these points is tangent to 
> the world therefore intersection with the above plane fails. We should 
> prevent navigating those planes ( we should not even construct them).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to