本文采用编辑earth文件的方式加载DEM高程数据
test.earth文件描述
<map version="2">
<image driver="xyz" enabled="true" name="gaode_sat-1" profile="global-mercator" url="http://webst0[1234].is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}" >
<cache_policy min_time="0" usage="no_cache" />
</image>
<!--加载高程-->
<elevation name="dem" driver="gdal">
<url>taiwan.tif</url>
</elevation>
</map>
保存后,打开CMD,输入:
osgviewer test.earth
或者
osgearth_viewer test.earth
效果如图所示,可以看到起伏的地形:

下一章中,讲述将DEM高程数据切割成TMS文件,并进行结果验证。

5553

被折叠的 条评论
为什么被折叠?



