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

Geo3d circle creation that covers whole globe throws an IllegalArgumentException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: modules/spatial
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: