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

Geo3d circle creation that covers whole globe throws an IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3
    • modules/spatial
    • None
    • New

    Description

      The following GeoCircle construction:

      new GeoCircle(PlanetModel.SPHERE, -20.0 * RADIANS_PER_DEGREE, -20.0 * RADIANS_PER_DEGREE, Math.PI);
      

      ... fails as follows:

      Degenerate/parallel vector constructed
      

      The reason is that the plane normal vector cannot be computed in that case. A special case is warranted for circles that cover the whole globe.

      Attachments

        1. LUCENE-6597.patch
          4 kB
          Karl Wright

        Activity

          People

            dsmiley David Smiley
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: