|
本帖最后由 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呢????? |
|