|
发表于 2010-11-24 21:31:04
|
显示全部楼层
看三维效果自己利用osgviewerd.exe就可以了。osgEarth利用osg的注册插件功能可以帮助用户轻易找到osgEarth的动态库,如果想要实现平面效果,你的上述做法是不行的,建议参考以下两个例子:
例子一:
<!--
Demonstrates how to take a spherical mercator data source and display it as
Plate Carre (y=lat, x=lon) by applying the <profile> tag.
-->
<map name="OpenStreetMap" type="projected">
<profile>global-geodetic</profile>
<image name="OSM on Mapnik" driver="tms">
<url>http://tile.openstreetmap.org/</url>
<profile>global-mercator</profile>
<format>png</format>
<tile_size>256</tile_size>
<tms_type>google</tms_type>
</image>
<loading_policy mode="standard"/>
<lighting>false</lighting>
</map>
例子二:
<map type="flat">
<heightfield name="terrain" driver = "gdal">
<url>..\data\terrain\dted\dted\e014</url>
<extensions>dt0;dt1;dt2</extensions>
</heightfield>
</map> |
|