查看: 1945|回复: 1

从modelLayer中生成要素源的时候有些值不能得到?

[复制链接]

该用户从未签到

发表于 2011-12-7 14:23:36 | 显示全部楼层 |阅读模式
本帖最后由 liaowei5566 于 2011-12-7 14:49 编辑

//从modelLayer中获取到要素源
osgEarth::ModelLayerOptions mloptions = pmodelLayer->getModelLayerOptions();
osgEarth::Features::FeatureModelSourceOptions fmsoptions = mloptions.driver().get();
osg::ref_ptr<osgEarth::Features::FeatureSource> pfeatureSource = osgEarth::Features::FeatureSourceFactory::create(fmsoptions.featureOptions().get());


osgEarth::Features::FeatureSchema my = pfeatureSource->getSchema();//得不到

这是什么情况啊。谁知道?

        /**
         * Gets the FeatureSchema for this FeatureSource. If the schema doesn't
         * publish a source, this might be empty.
         */
        virtual const FeatureSchema& getSchema() const;

那么该怎么才能publish a source呢?????

该用户从未签到

 楼主| 发表于 2011-12-7 14:49:52 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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