Ignacio Vera created LUCENE-10673: ------------------------------------- Summary: 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 Reporter: Ignacio Vera
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