You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/08/04 04:48:00 UTC

[jira] [Commented] (LUCENE-10673) Spatial3d fails constructing a legal bounding box

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

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

Commit bd0718f0716ad3f30e0d79b352cd678df249f550 in lucene's branch refs/heads/main from Ignacio Vera
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=bd0718f0716 ]

LUCENE-10673: Improve check of equality for latitudes for spatial3d GeoBoundingBox (#1056)



> 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
>            Priority: Major
>          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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org