如何从参考纬度和经度中获得"x"米的纬度和经度? [英] How can I get the latitude and longitude of “x” meter from ref latitude and longitude?
问题描述
我有一个以米为单位的距离,以及参考纬度和经度.现在,我要从x米上的给定参考点开始沿四个方向(南,北,东和西)进行纬度和经度.
I have a distance in meters and ref latitude and longitude. Now I want latitude and longitude from the given ref point on x meters in four direction (south, north, east and west).
如何获得该值?
我需要用C#编写代码,但是任何伪代码或逻辑指导都将受到欢迎.
I need to write this in C#, but any pseudocode or logic guidance will be welcome.
我有一个坐标作为参考点,因此我想计算北向5米的距离,同时保持经度不变.因此,我想计算距参考点5米的纬度.我要对东西三个方向都做同样的事情,我要保持经度不变.
I have a coordinates as references point from that I want to calculate distances of 5 meters in north direction keeping longitude as constant. So I want to calculate latitude at a distance of 5 meters from my reference point. Same I have to do for all 3 directions in east west direction I am keeping longitude as a constant.
请让我知道我们是否可以使用任何公式.
Please let me know if any formula we can use for this.
推荐答案
它必须有多精确?您通常可以假设地球是半径为6360 km的球体.在这种情况下,北或南一度是10000/90公里(这是米的定义方式).东西方的硬度稍高一点,东方1度为10000/90公里* cos(纬度).
How accurate does it have to be? You can often assume the earth is a sphere with a radius of 6360 km. In that case, one degree north or south is 10000/90 kilometers (that's how the meter was defined). East/West is only slightly harder, one degree east is 10000/90 km * cos(latitude).
这篇关于如何从参考纬度和经度中获得"x"米的纬度和经度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!