You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nicholas Knize (JIRA)" <ji...@apache.org> on 2015/07/31 23:01:04 UTC

[jira] [Updated] (LUCENE-6710) GeoPointField should use full 64 bit encoding

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

Nicholas Knize updated LUCENE-6710:
-----------------------------------
    Attachment: LUCENE-6710.patch

Patch to use full 64 bit precision for morton encoding, unit test included.

> GeoPointField should use full 64 bit encoding
> ---------------------------------------------
>
>                 Key: LUCENE-6710
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6710
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Nicholas Knize
>         Attachments: LUCENE-6710.patch
>
>
> Current GeoPointField uses 31 bits for each lat and long, respectively.  This causes a precision error for the maximum bounds for 2D mapping applications (e.g., instead of maximum of 180, 90 the max value handled is 179.999999, 89.999999).
> This issue improves precision for the full 2D map boundaries by using the full 32 bit range for lat/lon values, resulting in a morton hash using the full 64 bit range.  



--
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