[
https://issues.apache.org/jira/browse/LUCENE-6578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603203#comment-14603203
]
Karl Wright commented on LUCENE-6578:
-------------------------------------
bq. Can someone succinctly explain what DistanceStyle abstraction represents?
There are various different ways of compute a distance metric. Each
DistanceStyle implementation is one such way. We support:
- ArcDistance (accurate angular distance)
- NormalDistance (perpendicular to a plane/line through the center of the earth)
- LinearDistance (straight chord distance)
- NormalSquaredDistance (the square of the normal distance)
- LinearSquaredDistance (the square of the linear distance)
The latter two methods are helpful because they require no square roots, so if
you need a fast distance estimate, that's what you'd use. I can also imagine
adding new distance types in the future, for example SurfaceDistance (which is
the expensive ellipsoidal surface distance metric).
Hope this helps.
> 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.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]