简体   繁体   English

如何计算由纬度和经度和海拔高度指定的两点(垂直)之间的距离?

[英]How do I calculate the distance between two points (vertically) specified by latitude and longitude and Altitude?

I have checked other questions but nobody is talking about how to calculate the height of an object using GPS,我检查了其他问题,但没有人谈论如何使用 GPS 计算 object 的高度,

Consider I have two data points vertically (not horizontally which calculates the distance), I have (lat1,lon1,alt1) and (lat2,lon2,alt2).考虑我有两个垂直的数据点(不是水平的计算距离),我有(lat1,lon1,alt1)和(lat2,lon2,alt2)。 now, How can I calculate the height of the object?现在,如何计算 object 的高度? Is there any formula using which I can get the height?有什么公式可以用来计算身高吗? consider a cube and data points are of the front top left and the front bottom left, can I get the height of this cube using these two data points using any formula?考虑一个立方体,数据点位于前左上角和前左下角,我可以使用任何公式使用这两个数据点得到这个立方体的高度吗?

在此处输入图像描述

If I am reading your question right, when you say height this is going to be the vertical.如果我没看错你的问题,当你说高度时,这将是垂直的。 Simply go简单go

alt2 - alt1

(assuming alt2 > alt1) or go (假设 alt2 > alt1)或 go

mod(alt1 - alt2)

This should give you the vertical rise irrespective of where the Lat, Long are in space!!!!无论纬度、经度在太空中的哪个位置,这都应该让您垂直上升!!!! Hope that solves it!希望能解决!

The question is not clear.问题不清楚。

Is the vertical distance what is required?垂直距离是必需的吗?

Please see the image below.请看下图。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何计算两个经纬度之间的距离 - How to calculate the distance between two latitude and longitude 如何使用我的位置使用经度和纬度计算两点之间的距离 - How to use my location to calculate distance between two points using latitude and longitude 如何使用angulajs计算两个经纬度之间的距离? - how to calculate distance between two latitude and longitude using angulajs? 如何计算两点之间的距离? - How do I calculate the distance between two points? 如何使用各自的纬度和经度值计算两个地方之间的距离? - How to calculate distance between two places using respective latitude and longitude values? 如何根据两个位置的经度和纬度获得距离? - How to get the distance between two locations based on their latitude and longitude? 如何在两个点(源和目标)之间匹配一个纬度和经度 - how to match one latitude and longitude in between two points(source and destination) 在两点之间生成固定的纬度和经度 - generate fixed no of latitude and longitude between two points 计算两个坐标之间的距离,考虑高度变化的短距离 - Calculate distance between two Coordinates, with short distances considering altitude variation 在SQL查询中查找两个纬度和经度之间的距离 - Find distance between two latitude and longitude in SQL query
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM