You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2017/05/24 14:41:04 UTC

[jira] [Resolved] (LUCENE-7849) Geo3d: GeoWideLongitudeSlice constructor can fail under some conditions

     [ https://issues.apache.org/jira/browse/LUCENE-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wright resolved LUCENE-7849.
---------------------------------
       Resolution: Fixed
    Fix Version/s: branch_6x
                   master (7.0)

> Geo3d: GeoWideLongitudeSlice constructor can fail under some conditions
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-7849
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7849
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>    Affects Versions: 6.5.1
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: master (7.0), branch_6x
>
>
> Under some conditions, the GeoWideLongitudeSlice constructor fails because it tries to construct a midpoint using a longitude that is out of range, e.g.:
> {code}
> 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)
> {code}
> This is because the center longitude is computed and is not normalized.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org