查看: 3627|回复: 1

osgEarth读取矢量问题

[复制链接]

该用户从未签到

发表于 2010-8-22 05:55:40 | 显示全部楼层 |阅读模式
本帖最后由 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)。请问各位这个问题如何解决?谢谢
feature_stencil_line_draping.jpg
feature_stencil_polygon_draping.jpg

该用户从未签到

发表于 2011-11-23 22:45:33 | 显示全部楼层
请问你问题解决了吗,我的没有这种模糊的景象,但矢量图也不可见
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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