[ 
https://issues.apache.org/jira/browse/LUCENE-10673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ignacio Vera resolved LUCENE-10673.
-----------------------------------
    Fix Version/s: 9.4
         Assignee: Ignacio Vera
       Resolution: Fixed

> Spatial3d fails constructing a legal bounding box
> -------------------------------------------------
>
>                 Key: LUCENE-10673
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10673
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>            Reporter: Ignacio Vera
>            Assignee: Ignacio Vera
>            Priority: Major
>             Fix For: 9.4
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The issue can be reproduced with the following test:
> {code}
>   @Test
>   public void testBBoxLatDegenerate() {
>       double minX = Geo3DUtil.fromDegrees(-180.0);
>       double maxX = Geo3DUtil.fromDegrees(-174.37500008381903);
>       double minY = Geo3DUtil.fromDegrees(89.99999765306711);
>       double maxY = Geo3DUtil.fromDegrees(89.99999794643372);
>       assertNotNull(GeoAreaFactory.makeGeoArea(PlanetModel.SPHERE, maxY, 
> minY, minX, maxX));
>   }
> {code}
> this currently fails with the following error:
> {code}
> Cannot determine sidedness because check point is on plane.
> java.lang.IllegalArgumentException: Cannot determine sidedness because check 
> point is on plane.
>       at 
> __randomizedtesting.SeedInfo.seed([F8095E23398C1BA6:396A213B6362092D]:0)
>       at 
> org.apache.lucene.spatial3d.geom.SidedPlane.<init>(SidedPlane.java:137)
>       at 
> org.apache.lucene.spatial3d.geom.GeoRectangle.<init>(GeoRectangle.java:149)
>       at 
> org.apache.lucene.spatial3d.geom.GeoBBoxFactory.makeGeoBBox(GeoBBoxFactory.java:134)
>       at 
> org.apache.lucene.spatial3d.geom.GeoAreaFactory.makeGeoArea(GeoAreaFactory.java:43)
>       at 
> org.apache.lucene.spatial3d.geom.TestGeoBBox.testBBoxLonDegenerate(TestGeoBBox.java:538)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to