osgearth由经纬度得到高程
来源:互联网 发布:access数据库百度云 编辑:程序博客网 时间:2024/05/17 10:27
首先就是中所周知的由世界坐标转成经纬度的方法,鼠标操作获取地理信息都是这样的。
如果已知经纬度,要得到高程主要有以下两种方法。
方法一举例:
GeoPoint gp(mapNode, lon, la, 0.0);double query_resolution= 0.0;double actual_resolution = 0.0;float elevation = 0.0f;osgEarth::ElevationQuery query(mapNode->getMap());elevation= query.getElevation(gp,query_resolution, &actual_resolution);return elevation;方法二举例:
float elevation = 0.0;mapNode->getTerrain()->getHeight(mapNode->getMapSRS(), lon,la, &elevation);
官方解释:The Terrain interface (on MapNode::getTerrain) returns heights based on scene graph intersection, i.e. the triangles in memory. So the value will differ depending on what level of detail of terrain tiles are currently paged into memory.
If you want to query the source elevation data directly you can use ElevationQuery object. It's slower, but more accurate since it samples the actual source data.
阅读全文
0 0
- osgearth由经纬度得到高程
- osgEarth获取经纬度和高程的几种方法
- osgEarth获取经纬度和高程的几种方法
- osgEarth获取经纬度和高程的几种方法
- osgEarth高程配色案例 5. colorramp.earth
- 得到经纬度
- osgEarth高程着色图案例 35. contourmap.earth
- 经纬度和高程坐标转换,来自osg
- 通过地点名得到经纬度
- 通过经纬度得到城市名称
- 由句柄得到文件名
- 由域名得到ip
- 由GA得到的
- gmap 得到当前中心位置 经纬度
- 得到GOOGLE地图点击点的经纬度
- 得到GOOGLE地图点击点的经纬度
- C# 根据经纬度得到GOOGLE瓦片地址
- 由图片得到异形窗体
- 单例设计模式
- 用python画出和excel一样的折线图加柱状图用多种线条和柱的颜色
- 安装GitLab出现ruby_block[supervise_redis_sleep] action run
- 单例模式
- 解决android4.2以下addJavaScriptInterface不安全问题
- osgearth由经纬度得到高程
- java生成唯一订单号
- iOS7到iOS11推送功能的差异总结
- kafka + zookeeper 单节点配置
- malloc函数详解之自己用C语言写出实现malloc()和free()功能的函数
- kettle根据主键批量更新
- Redis中 MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist
- SpringMVC下载不支持IE 和其他浏览器兼容模式,和IE 中文乱码问题
- 相关