lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Knize (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LUCENE-6905) GeoPointDistanceQuery using wrapped lon for dateline crossing query
Date Fri, 20 Nov 2015 05:05:11 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15014762#comment-15014762
] 

Nicholas Knize edited comment on LUCENE-6905 at 11/20/15 5:04 AM:
------------------------------------------------------------------

Simple patch that unwraps the center longitude such that distance is correctly computed. Also
corrects maxRadialDistance for center location at the poles. 
This fixes build failure #14669 and passes a 200 iteration beast test..


was (Author: nknize):
Simple patch that unwraps the center longitude such that distance is correctly computed. Also
corrects maxRadialDistance for center location at the poles. 
This is fixes build failure #14669 and passes a 200 iteration beast test..

> GeoPointDistanceQuery using wrapped lon for dateline crossing query
> -------------------------------------------------------------------
>
>                 Key: LUCENE-6905
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6905
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Nicholas Knize
>             Fix For: Trunk, 6.0, 5.4
>
>         Attachments: LUCENE-6905.patch, LUCENE-6905.patch
>
>
> GeoPointDistanceQuery handles dateline crossing by splitting the MBR into east/west ranges
and rewriting to a Boolean SHOULD. PostFiltering is accomplished by calculating the distance
from the center point to the candidate point field. Unfortunately the center point is wrapped
such that calculating the distance from a eastern point to a western MBR provides incorrect
results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message