|
本帖最后由 hello! 于 2010-8-22 06:04 编辑
利用osgViewer读取osgEarth的tests文件夹feature_stencil_line_draping.earth,可是读取的数据图像出现淡黄色模糊的景象,而且矢量也不可见(见图feature_stencil_line_draping),
<!--
osgEarth Sample
This one demonstrates how to "drape" line data on the map using a
stenciling technique.
-->
<map name="Feature Stencil Demo" type="round">
<image name="world" driver="gdal">
<url>../data/world.tif</url>
</image>
<model name="states" driver="feature_stencil">
<!-- Configure the OGR feature driver to read the shapefile.
Convert the goemetry to lines, and apply a small buffer
to give the lines thickness. -->
<features name="world" driver="ogr">
<url>../data/world.shp</url>
<ogr_driver>ESRI Shapefile</ogr_driver>
</features>
<geometry_type>line</geometry_type>
<!-- This driver uses the "stroke-width" property below to define
the width (in data source coordinated) of the draped lines.
In this case the units are degrees. -->
<style type="text/css">
world {
stroke: #ffff00;
stroke-opacity: 0.5;
stroke-width: 0.1;
}
</style>
</model>
</map>
而在读取feature_stencil_polygon_draping.earth时,出现橙色模糊景象,没有矢量出现(如图feature_stencil_polygon_draping)。请问各位这个问题如何解决?谢谢 |
-
-
|