将LLA转换为XYZ [英] Converting LLA to XYZ

查看:105
本文介绍了将LLA转换为XYZ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能帮我将lla转换为xyz坐标吗?

Can you help me to convert lla to xyz coordnates.

我正在使用

earthRadius = 6378.137;
var x = earthRadius * Math.cos(lat)*Math.cos(lon);
var y = earthRadius * Math.cos(lat)*Math.sin(lon);
var z = earthRadius * Math.sin(lat);

此方法转换为xyz坐标。但是它不能给出我想要的正确结果。
地球被定义为wgs84对象。

this method to convert to xyz coordinates. But it does not give the correct result I want. Earth is defined as wgs84 object.

推荐答案

我解决了问题

Lat Long到JS中的XYZ位置。

此公式是正确的。感谢Stephen Quan回答这个问题。

this formula is the correct one. Thanks for Stephen Quan for answering this.

这篇关于将LLA转换为XYZ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆