BoxIds of CartesianTierPlotter in Lucene spatial seems incorrect
----------------------------------------------------------------

                 Key: LUCENE-1982
                 URL: https://issues.apache.org/jira/browse/LUCENE-1982
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Yankang Jiang


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.ji...@gmail.com

Thanks.

Yankang

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to