On Oct 19, 2010, at 6:23 PM, Pradeep Singh wrote:

> https://issues.apache.org/jira/browse/LUCENE-2519
> 
> If I change my code as per 2519
> 
> to have this  -
> 
> public double[] coords(double latitude, double longitude) {
>    double rlat = Math.toRadians(latitude);
>    double rlong = Math.toRadians(longitude);
>    double nlat = rlong * Math.cos(rlat);
>    return new double[]{nlat, rlong};
> 
>  }
> 
> 
> return this -
> 
> x = (gamma - gamma[0]) cos(phi)
> y = phi
> 
> would it make it give correct results? Correct projections, tier ids?

I'm not sure.  I have a lot of doubt around that code.  After making that 
correction, I spent several days trying to get the tests to pass and ultimately 
gave up.  Does that mean it is wrong?  I don't know.  I just don't have enough 
confidence to recommend it given that the tests I were asking it to do I could 
verify through other tools.  Personally, I would recommend seeing if one of the 
non-tier based approaches suffices for your situation and use that.

-Grant

Reply via email to