lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yankang Jiang (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1982) BoxIds of CartesianTierPlotter in Lucene spatial seems incorrect
Date Wed, 14 Oct 2009 01:07:31 GMT
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.jiang@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message