osgEarth 2.1.1
Public Member Functions

OGRFeatureSourceFactory Class Reference

Inheritance diagram for OGRFeatureSourceFactory:
Collaboration diagram for OGRFeatureSourceFactory:

List of all members.

Public Member Functions

 OGRFeatureSourceFactory ()
virtual const char * className ()
virtual ReadResult readObject (const std::string &file_name, const Options *options) const

Detailed Description

Definition at line 477 of file FeatureSourceOGR.cpp.


Constructor & Destructor Documentation

OGRFeatureSourceFactory::OGRFeatureSourceFactory ( ) [inline]

Definition at line 480 of file FeatureSourceOGR.cpp.

    {
        supportsExtension( "osgearth_feature_ogr", "OGR feature driver for osgEarth" );
    }

Member Function Documentation

virtual const char* OGRFeatureSourceFactory::className ( ) [inline, virtual]

Definition at line 485 of file FeatureSourceOGR.cpp.

    {
        return "OGR Feature Reader";
    }
virtual ReadResult OGRFeatureSourceFactory::readObject ( const std::string &  file_name,
const Options *  options 
) const [inline, virtual]

Definition at line 490 of file FeatureSourceOGR.cpp.

    {
        if ( !acceptsExtension(osgDB::getLowerCaseFileExtension( file_name )))
            return ReadResult::FILE_NOT_HANDLED;

        return ReadResult( new OGRFeatureSource( getFeatureSourceOptions(options) ) );
    }

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