Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10673

Spatial3d fails constructing a legal bounding box

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.4
    • modules/spatial3d
    • None
    • New

    Description

      The issue can be reproduced with the following test:

        @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));
        }
      

      this currently fails with the following error:

      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)
      
      
      

      Attachments

        Issue Links

          Activity

            People

              ivera Ignacio Vera
              ivera Ignacio Vera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m