Commit 6539462
committed
feat: implement to_wgs84_extended
Implement a closed-form ECEF to WGS84 algorithm based on the following
paper: https://link.springer.com/article/10.1007/s00190-024-01821-w by
Quan&Zhang (2024). This was proposed in #65, as this algorithm is newer
and does not have the same height limitations as the current
implementation. The paper states accurate calculations between -6.33e6m
and 1e10m, much better than the current -10_000m to 50_000m. A trade off
is a ~57% runtime increase on my machine (47.4ns vs 74.6ns). This commit
also introduces a benchmark to test both implementations against each
other. There is an optimization in the paper (Appendix 1 Step 2) that is
currently not implemented as it relies on a threshold describing the
distance of the point to the astroid. This threshold is only defined as
"near" by the paper. Testing a naive threshold improved the performance
by ~13.5% which brought the increase down to ~38.9% (47.4ns vs 65.8ns).
As I do not know at which threshold the optimization can be used, it is
not used as of now.1 parent 56f573f commit 6539462
5 files changed
Lines changed: 673 additions & 2 deletions
0 commit comments