[
https://issues.apache.org/jira/browse/LUCENE-6487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558666#comment-14558666
]
David Smiley commented on LUCENE-6487:
--------------------------------------
bq. I can propose code if you like, but basically what you do is this: (1)
compute the inverse magnitude (im), then (2) lat = im * asin(z), (3) lon =
atan2(y,x).
It'd be great if a GeoPoint could compute this -- after all it takes lat & lon
parameters.
bq. I can code up all of this stuff if you want to propose a good way to
deliver it.
Do you mean, how literally should you provide the code? Whatever you'd like
(patch, ReviewBoard, GitHub PR).
p.s. I ran a lot more iterations and no errors :-)
> Add WGS84 capability to geo3d support
> -------------------------------------
>
> Key: LUCENE-6487
> URL: https://issues.apache.org/jira/browse/LUCENE-6487
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spatial
> Reporter: Karl Wright
> Attachments: LUCENE-6487.patch, LUCENE-6487.patch
>
>
> WGS84 compatibility has been requested for geo3d. This involves working with
> an ellipsoid rather than a unit sphere. The general formula for an ellipsoid
> is:
> x^2/a^2 + y^2/b^2 + z^2/c^2 = 1
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]