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

WGS84转百度坐标不准额。 #37

Open
youzhi0403 opened this issue Apr 8, 2020 · 1 comment
Open

WGS84转百度坐标不准额。 #37

youzhi0403 opened this issue Apr 8, 2020 · 1 comment

Comments

@youzhi0403
Copy link

之前一直使用百度的接口做坐标系的转换。
但有时候总是转换不成功。
我测了一下这个:
function test(x,y) {
var temp = coordtransform.wgs84togcj02(x,y)
return coordtransform.gcj02tobd09(temp[0],temp[1])
}
不准额。
是我哪里出问题了吗?

@cuizhan-rick
Copy link

确实跟百度自己转出来的不一样,要不然就是这个算法太老了,百度又更新了新的算法,现在网上能搜到的都是这套算法。
这套算法转火星坐标应该是准的。

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