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

David Smiley updated LUCENE-6578:
---------------------------------
    Attachment: LUCENE-6578-dws.patch

This is the patch I posted to ReviewBoard, and Karl accepted it.  It's mostly 
about reducing code duplication around duplicate isWithin or some other methods 
that are overloaded with GeoPoint or Vector.  I moved common implementations to 
base classes, and I added a Java 8 default method.  To make back-porting easier 
I don't leverage the existence of that method; we might change that at a later 
point.  I also eliminated redundant javadocs where I saw them.  I also 
found/fixed some equals/hashcode problems -- notably SidedPlane was missing 
them.

Suggested CHANGES.txt:
{noformat}
* LUCENE-6578: Geo3D can now compute the distance from a point to a shape, both
  inner distance and to an outside edge. Multiple distance algorithms are
  available.  (Karl Wright, David Smiley)
{noformat}

I'll commit this later today unless there are objections.

> Geo3d: arcDistanceToShape() method may be useful
> ------------------------------------------------
>
>                 Key: LUCENE-6578
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6578
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial
>            Reporter: Karl Wright
>         Attachments: LUCENE-6578-dws.patch, LUCENE-6578.patch, 
> LUCENE-6578.patch, LUCENE-6578.patch
>
>
> I've got an application that seems like it may need the ability to compute a 
> new kind of arc distance, from a GeoPoint to the nearest edge/point of a 
> GeoShape.  Adding this method to the interface, and corresponding 
> implementations, would increase the utility of the package for ranking 
> purposes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to