[原][osgearth]osgearthElvation中的一帧

 

[原][osgearth]osgearthElvation中的一帧

 

[原][osgearth]osgearthElvation中的一帧

 

[原][osgearth]osgearthElvation中的一帧

create tile key

 

[原][osgearth]osgearthElvation中的一帧

contains

 

[原][osgearth]osgearthElvation中的一帧

获取tile上的临界值

 

 

[原][osgearth]osgearthElvation中的一帧

这里先获取层数的切份(下图)

[原][osgearth]osgearthElvation中的一帧

然后使用xmin,xmax,ymin,ymax获取tile的四个点

再通过geoextent获取一个有有空间参考坐标系的边界框

下图是获取五个顶点世界坐标点的算法:

1 osg::Vec3d center, sw, se, ne, nw;
2 
3             GeoPoint(getSRS(), x, y, 0, ALTMODE_ABSOLUTE).toWorld(center);
4             GeoPoint(getSRS(), west(), south(), 0, ALTMODE_ABSOLUTE).toWorld(sw);
5             GeoPoint(getSRS(), east(), south(), 0, ALTMODE_ABSOLUTE).toWorld(se);
6             GeoPoint(getSRS(), east(), north(), 0, ALTMODE_ABSOLUTE).toWorld(ne);
7             GeoPoint(getSRS(), west(), north(), 0, ALTMODE_ABSOLUTE).toWorld(nw);

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-03
  • 2021-07-03
  • 2021-12-12
  • 2022-12-23
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案