使用 boost::geometry,使用距离和方位角投影一个新点

问题描述

使用起始经纬度、距离和方位角,如何获得新点的坐标?理想情况下,这将使用 wgs84 实现。

#include <boost/geometry/algorithms/distance.hpp>
#include <boost/geometry/geometries/point_xy.hpp>

// The inverse of what I'm trying to do
boost::geometry::model::d2::point_xy<double> point_a(0,0);
boost::geometry::model::d2::point_xy<double> point_b(1,0);
double distance_between_points = boost::geometry::distance(a,b);

// what I'm trying to do
boost::geometry::model::d2::point_xy<double> point_a(0,0);
double distance_km{111.32};
double azimuth_deg{90};
// point_c should be approximatly (0,1)
// this is not a real function signature for distance
boost::geometry::model::d2::point_xy<double> point_c = boost::geometry::distance(point_a,distance_km,azimuth_deg);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)