const Status& FeatureMaskLayer::open() { if (options().featureSource().isSet()) { FeatureSource* fs = FeatureSourceFactory::create(options().featureSource().get()); if (fs) { fs->setReadOptions(getReadOptions()); fs->open(); setFeatureSource(fs); } else { setStatus(Status(Status::ConfigurationError, "Cannot create feature source")); } } return MaskLayer::open(); }
const Status& FeatureModelLayer::open() { OE_TEST << LC << "open" << std::endl; if (options().featureSource().isSet()) { FeatureSource* fs = FeatureSourceFactory::create(options().featureSource().get()); if (fs) { fs->setReadOptions(getReadOptions()); fs->open(); setFeatureSource(fs); } else { setStatus(Status(Status::ConfigurationError, "Cannot create feature source")); } } return VisibleLayer::open(); }