osgEarth 2.1.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

osgEarth::Drivers::OGRFeatureOptions Class Reference

Inheritance diagram for osgEarth::Drivers::OGRFeatureOptions:
Collaboration diagram for osgEarth::Drivers::OGRFeatureOptions:

List of all members.

Public Member Functions

optional< URI > & url ()
const optional< URI > & url () const
optional< std::string > & connection ()
const optional< std::string > & connection () const
optional< std::string > & ogrDriver ()
const optional< std::string > & ogrDriver () const
optional< bool > & buildSpatialIndex ()
const optional< bool > & buildSpatialIndex () const
optional< Config > & geometryConfig ()
const optional< Config > & geometryConfig () const
optional< std::string > & geometryUrl ()
const optional< std::string > & geometryUrl () const
osg::ref_ptr
< Symbology::Geometry > & 
geometry ()
const osg::ref_ptr
< Symbology::Geometry > & 
geometry () const
 OGRFeatureOptions (const ConfigOptions &opt=ConfigOptions())
Config getConfig () const

Protected Member Functions

void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< URI_url
optional< std::string > _connection
optional< std::string > _ogrDriver
optional< bool > _buildSpatialIndex
optional< Config_geometryConf
optional< Config_geometryProfileConf
optional< std::string > _geometryUrl
osg::ref_ptr< Symbology::Geometry_geometry

Detailed Description

Definition at line 30 of file OGRFeatureOptions.


Constructor & Destructor Documentation

osgEarth::Drivers::OGRFeatureOptions::OGRFeatureOptions ( const ConfigOptions opt = ConfigOptions()) [inline]

Definition at line 56 of file OGRFeatureOptions.

                                                                       : FeatureSourceOptions( opt ) {
            setDriver( "ogr" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<bool>& osgEarth::Drivers::OGRFeatureOptions::buildSpatialIndex ( ) [inline]

Definition at line 42 of file OGRFeatureOptions.

{ return _buildSpatialIndex; }
const optional<bool>& osgEarth::Drivers::OGRFeatureOptions::buildSpatialIndex ( ) const [inline]

Definition at line 43 of file OGRFeatureOptions.

{ return _buildSpatialIndex; }
const optional<std::string>& osgEarth::Drivers::OGRFeatureOptions::connection ( ) const [inline]

Definition at line 37 of file OGRFeatureOptions.

{ return _connection; }
optional<std::string>& osgEarth::Drivers::OGRFeatureOptions::connection ( ) [inline]

Definition at line 36 of file OGRFeatureOptions.

{ return _connection; }
void osgEarth::Drivers::OGRFeatureOptions::fromConfig ( const Config conf) [inline, private]

Reimplemented from osgEarth::Features::FeatureSourceOptions.

Definition at line 81 of file OGRFeatureOptions.

                                              {
            conf.getIfSet( "url", _url );
            conf.getIfSet( "connection", _connection );
            conf.getIfSet( "ogr_driver", _ogrDriver );
            conf.getIfSet( "build_spatial_index", _buildSpatialIndex );
            conf.getIfSet( "geometry", _geometryConf );
            conf.getIfSet( "geometry_url", _geometryUrl );
            _geometry = conf.getNonSerializable<Symbology::Geometry>( "OGRFeatureOptions::geometry" );
        }

Here is the call graph for this function:

osg::ref_ptr<Symbology::Geometry>& osgEarth::Drivers::OGRFeatureOptions::geometry ( ) [inline]

Definition at line 52 of file OGRFeatureOptions.

{ return _geometry; }

Here is the caller graph for this function:

const osg::ref_ptr<Symbology::Geometry>& osgEarth::Drivers::OGRFeatureOptions::geometry ( ) const [inline]

Definition at line 53 of file OGRFeatureOptions.

{ return _geometry; }
optional<Config>& osgEarth::Drivers::OGRFeatureOptions::geometryConfig ( ) [inline]

Definition at line 45 of file OGRFeatureOptions.

{ return _geometryConf; }
const optional<Config>& osgEarth::Drivers::OGRFeatureOptions::geometryConfig ( ) const [inline]

Definition at line 46 of file OGRFeatureOptions.

{ return _geometryConf; }
optional<std::string>& osgEarth::Drivers::OGRFeatureOptions::geometryUrl ( ) [inline]

Definition at line 48 of file OGRFeatureOptions.

{ return _geometryUrl; }
const optional<std::string>& osgEarth::Drivers::OGRFeatureOptions::geometryUrl ( ) const [inline]

Definition at line 49 of file OGRFeatureOptions.

{ return _geometryUrl; }
Config osgEarth::Drivers::OGRFeatureOptions::getConfig ( ) const [inline, virtual]

Gets or sets the name of the object

Reimplemented from osgEarth::Features::FeatureSourceOptions.

Definition at line 62 of file OGRFeatureOptions.

                                 {
            Config conf = FeatureSourceOptions::getConfig();
            conf.updateIfSet( "url", _url );
            conf.updateIfSet( "connection", _connection );
            conf.updateIfSet( "ogr_driver", _ogrDriver );
            conf.updateIfSet( "build_spatial_index", _buildSpatialIndex );
            conf.updateIfSet( "geometry", _geometryConf );    
            conf.updateIfSet( "geometry_url", _geometryUrl );
            conf.updateNonSerializable( "OGRFeatureOptions::geometry", _geometry.get() );
            return conf;
        }

Here is the call graph for this function:

void osgEarth::Drivers::OGRFeatureOptions::mergeConfig ( const Config conf) [inline, protected, virtual]

Reimplemented from osgEarth::Features::FeatureSourceOptions.

Definition at line 75 of file OGRFeatureOptions.

Here is the call graph for this function:

optional<std::string>& osgEarth::Drivers::OGRFeatureOptions::ogrDriver ( ) [inline]

Definition at line 39 of file OGRFeatureOptions.

{ return _ogrDriver; }
const optional<std::string>& osgEarth::Drivers::OGRFeatureOptions::ogrDriver ( ) const [inline]

Definition at line 40 of file OGRFeatureOptions.

{ return _ogrDriver; }
const optional<URI>& osgEarth::Drivers::OGRFeatureOptions::url ( ) const [inline]

Definition at line 34 of file OGRFeatureOptions.

{ return _url; }
optional<URI>& osgEarth::Drivers::OGRFeatureOptions::url ( ) [inline]

Definition at line 33 of file OGRFeatureOptions.

{ return _url; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 94 of file OGRFeatureOptions.

Definition at line 92 of file OGRFeatureOptions.

Definition at line 98 of file OGRFeatureOptions.

Definition at line 95 of file OGRFeatureOptions.

Definition at line 96 of file OGRFeatureOptions.

Definition at line 97 of file OGRFeatureOptions.

Definition at line 93 of file OGRFeatureOptions.

Definition at line 91 of file OGRFeatureOptions.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines