
GeographicLib安装
发布日期:2021-05-14 09:33:24
浏览次数:20
分类:精选文章
本文共 1302 字,大约阅读时间需要 4 分钟。
������GeographicLib������������������������������������
���������������������������������������������������������������������
tar xzf GeographicLib-1.51.tar.gz
���������������������������������
cd GeographicLib-1.51
������������������������������������������������������������������
mkdir BUILDcd BUILD
������������������cmake������������������������������������Linux���Unix���MacOSX���������������������������
cmake ..
������cmake���������������������������������������������������������
makemake testsudo make install
���������������������GeographicLib���������������������������CMakeLists.txt���������������������
find_package(GeographicLib REQUIRED)add_executable(program source1.cpp source2.cpp)target_link_libraries(program ${GeographicLib_LIBRARIES})
������������
���������WGS84���UTM������MGRS������������������������������
#include#include #include double northing, easting;bool northp;int izone;// WGS84���UTMdouble lat, lon;WGS84toUTM(lat, lon, izone, northp, easting, northing);// UTM���MGRSstd::string mgrs;MGRS::Forward(izone, northp, easting, northing, 7, mgrs);// ���������MGRS������������std::cout << mgrs.substr(5, 7).insert(5, ".") << "\n";
������������������������prec
������_gpilo���_mgrs���������������������������������������
发表评论
最新留言
网站不错 人气很旺了 加油
[***.192.178.218]2025年05月03日 17时59分50秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
TP路由地址叠加
2021-05-14
'ls' 不是内部或外部命令
2021-05-14
解决框架报错不明显:使用try和catch是关键
2021-05-14
正则验证:element添加动态正则验证
2021-05-14
vue报错 created hook错误
2021-05-14
Think PHP 学习笔记 10.查询方式实例演示
2021-05-14
JS 瀑布流效果
2021-05-14
单选框点击文字也能选中
2021-05-14
使用Field II进行超声波束形成的设计仿真
2021-05-14
制作声场GIF动画
2021-05-14
此主机支持Intel VT-x,但Intel VT-x 处于禁用状态。
2021-05-14
golang reflect实例
2021-05-14
IDEA让代码飞起来,IDEA快捷键
2021-05-14
微信小程序学习记录之WXML事件
2021-05-14
zabbix监控安装
2021-05-14
06-局部变量和全局变量
2021-05-14
12-面向对象1
2021-05-14
python函数基础
2021-05-14
ansible
2021-05-14