lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENE-1982) BoxIds of CartesianTierPlotter in Lucene spatial seems incorrect
Date Mon, 02 Dec 2013 04:01:36 GMT

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

David Smiley resolved LUCENE-1982.
----------------------------------

       Resolution: Won't Fix
    Fix Version/s: 4.0-BETA

Closing because the old spatial contrib module referenced here no longer exists as of Solr
4.

> BoxIds of CartesianTierPlotter in Lucene spatial seems incorrect
> ----------------------------------------------------------------
>
>                 Key: LUCENE-1982
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1982
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial
>            Reporter: Yankang Jiang
>             Fix For: 4.0-BETA
>
>
> Refering to the following code.
> package org.apache.lucene.spatial.tier.projections;
> /**
>  * 
>  */
> Double idd = new Double(180);
> public class CartesianTierPlotter {
>  private double getBoxId (double coord){
>     
>     return Math.floor(coord / (idd / this.tierLength));
>   }
>   
> I think idd should be Math.PI, rather than 180 since coord is a radiant. As a result
of the suspected problem,   only 1/60 (Math.PI/180)  number of the boxes can be created. 

> I would very appreciate it if someone can take a look. In fact,  I have a few more questions
about Lucene spatial.  Please feel free to contact me
> at yankang.jiang@gmail.com
> Thanks.
> Yankang



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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


Mime
View raw message