[英]Add a distance and bearing to a DbGeography to get a new point
我有一个表示起点的DbGeography,并且知道行进的距离和方向。 有了这些信息,是否有办法使用SqlSpatial库获取代表新位置的新DbGeography? 即无需亲自进行大圆计算或使用第三方库。
我在追求类似
DbGeography newPosition = oldPosition.Add(distance, bearing);
我不是专家,但是我认为您所追求的是Vincenty Direct Problem的实现。
https://en.wikipedia.org/wiki/Vincenty%27s_formulae#Direct_Problem
看一下
http://www.gavaghan.org/blog/free-source-code/geodesy-library-vincentys-formula/
和这个相关的问题Vincenty直接公式纬度问题
希望这是有用的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.