You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yankang Jiang (JIRA)" <ji...@apache.org> on 2009/10/14 03:07:31 UTC
[jira] Created: (LUCENE-1982) BoxIds of CartesianTierPlotter in
Lucene spatial seems incorrect
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