osgEarth::Drivers::OGRFeatureOptions* feature = new osgEarth::Drivers::OGRFeatureOptions();
osgEarth::Drivers::FeatureGeomModelOptions* opt = new osgEarth::Drivers::FeatureGeomModelOptions();
Style style(features->config()); <-- is this the way to link the OGRfeature to the geomModel ?
style.lineSymbolizer()->stroke()->color() = osg::Vec4f(1,1,0,0);
style.lineSymbolizer()->stroke()->width() = 1.0f;
opt->styles()->addStyle( style );
osgEarth::ModelLayer* model = new osgEarth::ModelLayer("sensorCurve", feature ); <-- do I have to use a modelLayer or a mapLayer ?
I have checked in a new sample app to the repository called "osgearth_features" that demonstrates how to build a map with a feature layer using the driver API. Take a look and let me know if this is helpful.
agglite is a rasterizer, it draws vectors to bitmaps and makes image tiles out of them. So 2D only. If you want 3D feature geometry then "feature_geom" is currently your only option. I don't know of anyone who has tested it with 3D shapefiles yet, maybe you will be the first :)
Correct, cache_type and cache_only are MapLayer settings.