Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#28 半径的跟进 #44

Open
Artoria2e5 opened this issue Dec 24, 2016 · 2 comments
Open

#28 半径的跟进 #44

Artoria2e5 opened this issue Dec 24, 2016 · 2 comments

Comments

@Artoria2e5
Copy link
Contributor

Artoria2e5 commented Dec 24, 2016

首先我犯了个错误:球面估计距离的时候应该用平均半径 6371e3,而不是 6378e3 的赤道半径。

其次 eviltransform 在 gcj 中提出半径参数,与距离共享的做法是严重错误的:

  • gcj 使用的是一个该死的 SZ-42 椭球体
  • gcj 的 A 参数是赤道半径
@googollee
Copy link
Owner

略晕…………

计算距离是等效为球面来算的。毕竟实际使用中,并没有遇到需要非常高精度的情况。

@Artoria2e5
Copy link
Contributor Author

Artoria2e5 commented Feb 22, 2017

等效球面至少也会用一个差不多平均的数值,也就是 6371 而不是 6378 那个。还有主要是现在 GCJ 上面的问题比较严重。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants