[
https://issues.apache.org/jira/browse/LUCENE-7849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16022928#comment-16022928
]
ASF subversion and git services commented on LUCENE-7849:
---------------------------------------------------------
Commit 1968c67790b9b4405b993d290e2e04e3baef6751 in lucene-solr's branch
refs/heads/branch_6x from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1968c67 ]
LUCENE-7849: GeoWideLongitudeSlice can fail to construct
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]