[ 
https://issues.apache.org/jira/browse/LUCENE-7951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16152660#comment-16152660
 ] 

Karl Wright commented on LUCENE-7951:
-------------------------------------

[~ivera], [~dsmiley], the distance calculator Ignacio wrote is designed to work 
with all planet models, not just spheres, and to compute surface distance, not 
arc distance.  Unfortunately, it's an expensive iterative calculation, and 
there's no better way to do it if you want true surface distance.

I don't know what Ignacio's use case is, or whether spatial4j has any 
particular meaning assigned to the "distance" so computed, but if you just want 
reasonably fast distances and do *not* need surface distance, you could use any 
one of the geo3d's distance metrics, e.g. arc distance or linear distance.  The 
latter would be the cheapest but is only useful for distances less than halfway 
around the globe.


> New wrapper classes for Geo3d
> -----------------------------
>
>                 Key: LUCENE-7951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7951
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/spatial-extras
>            Reporter: Ignacio Vera
>            Priority: Minor
>         Attachments: LUCENE-7951.patch
>
>
> Hi,
> After the latest developments in the Geo3d library, in particular:
> [https://issues.apache.org/jira/browse/LUCENE-7906] : Spatial relationships 
> between GeoShapes
> [https://issues.apache.org/jira/browse/LUCENE-7936]: Serialization of 
> GeoShapes.
> I propose a new set of wrapper classes which can be for example linked to 
> Solr as they implement their own SpatialContextFactory. It provides the 
> capability of indexing shapes with 
>  spherical geometry.
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to