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

Geo3d: GeoWideLongitudeSlice constructor can fail under some conditions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.7, 7.0
    • Component/s: modules/spatial3d
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Under some conditions, the GeoWideLongitudeSlice constructor fails because it tries to construct a midpoint using a longitude that is out of range, e.g.:

      java.lang.IllegalArgumentException: Longitude 3.2920212245464384 is out of range: must range from -Math.PI to Math.PI
      
              at com.nokia.geo3d.GeoPoint.<init>(GeoPoint.java:92)
      
              at com.nokia.geo3d.GeoPoint.<init>(GeoPoint.java:52)
      
              at com.nokia.geo3d.GeoPoint.<init>(GeoPoint.java:74)
      
              at com.nokia.geo3d.GeoWideLongitudeSlice.<init>(GeoWideLongitudeSlice.java:80)
      
              at com.nokia.geo3d.GeoBBoxFactory.makeGeoBBox(GeoBBoxFactory.java:72)
      

      This is because the center longitude is computed and is not normalized.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: