查看: 1641|回复: 1

关于worldPointToMapPoint

[复制链接]

该用户从未签到

发表于 2013-10-18 22:04:12 | 显示全部楼层 |阅读模式
好久没看osgearth了,发现osgearth2.4版本中osgEarth::Map的worldPointToMapPoint函数已经没有了,有谁知道这个函数改到哪个类里面了呢?

该用户从未签到

发表于 2014-4-15 21:40:18 | 显示全部楼层
看osgearth论坛里维护人员gwaldron说把map里的一些接口都删掉了,相关功能再GeoPoint里可以找到,原话是:

A couple small API changes coming your way. These server to streamline the API and remove some redundancy.

The following Map methods will be removed since their functionality is now more completely served by the GeoPoint API:

    Map::toMapPoint
    Map::toWorldPoint
    Map::mapPointToWorldPoint

The corresponding methods in MapInfo will also go away as well.

Secondly, the Terrain getHeight methods will be simplified to contain only:

    Terrain::getHeight(srs, x, y, hamsl, hae)
    Terrain::getHeight(patch, srs, x, y, hamsl, hae)

..thus removing the variants that do not take an SRS, and moving the "patch" parameter to the front to avoid ambiguous parameter issues.

Enjoy.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表