opensubscriber
   Find in this group all groups
 
Unknown more information…

j : java-dev@lucene.apache.org 10 September 2009 • 9:01AM -0400

[jira] Updated: (LUCENE-1894) Spatial checks for a string in an int,double map
by Mark Miller (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP





     [ https://issues.apache.org/jira/browse/LUCENE-1894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Miller updated LUCENE-1894:
--------------------------------

    Attachment: LUCENE-1894.patch

I guess I'll fix this one

> Spatial checks for a string in an int,double map
> ------------------------------------------------
>
>                 Key: LUCENE-1894
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1894
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/spatial
>            Reporter: Mark Miller
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: LUCENE-1894.patch
>
>
> {code}
>   private Map<Integer,Double> distances;
> {code}
> {code}
>     if (precise != null) {
>       double xLat = getPrecision(lat, precise);
>       double xLng = getPrecision(lng, precise);
>      
>       String k = new Double(xLat).toString() +","+ new Double(xLng).toString();
>    
>       Double d = (distances.get(k));
>       if (d != null){
>         return d.doubleValue();
>       }
>     }
> {code}
> Something is off here eh?

--
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@luce...
For additional commands, e-mail: java-dev-help@luce...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.