[
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 [email protected]
> Thanks.
> Yankang
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]