Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::OGRVectorDataIO Class Reference

ImageIO object for reading and writing OGR format vector data. More...

#include <otbOGRVectorDataIO.h>

+ Inheritance diagram for otb::OGRVectorDataIO:
+ Collaboration diagram for otb::OGRVectorDataIO:

Public Types

typedef Superclass::ByteOrder ByteOrder
 
typedef
InternalTreeNodeType::ChildrenListType 
ChildrenListType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef DataNodeType::Pointer DataNodePointerType
 
typedef
VectorDataType::DataNodeType 
DataNodeType
 
typedef DataTreeType::ConstPointer DataTreeConstPointerType
 
typedef DataTreeType::Pointer DataTreePointerType
 
typedef
VectorDataType::DataTreeType 
DataTreeType
 
typedef DataTreeType::TreeNodeType InternalTreeNodeType
 
typedef LineType::Pointer LinePointerType
 
typedef DataNodeType::LineType LineType
 
typedef Superclass::PointType OriginType
 
typedef itk::SmartPointer< SelfPointer
 
typedef DataNodeType::PointType PointType
 
typedef PolygonListType::Pointer PolygonListPointerType
 
typedef
DataNodeType::PolygonListType 
PolygonListType
 
typedef PolygonType::Pointer PolygonPointerType
 
typedef DataNodeType::PolygonType PolygonType
 
typedef OGRVectorDataIO Self
 
typedef Superclass::SpacingType SpacingType
 
typedef VectorDataIOBase Superclass
 
typedef
VectorDataType::ConstPointer 
VectorDataConstPointerType
 
typedef VectorDataType::Pointer VectorDataPointerType
 
typedef VectorData< double, 2 > VectorDataType
 
typedef
VertexListType::ConstPointer 
VertexListConstPointerType
 
typedef LineType::VertexListType VertexListType
 
- Public Types inherited from otb::VectorDataIOBase
enum  ByteOrder {
  BigEndian,
  LittleEndian,
  OrderNotApplicable
}
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::Point< double,
VDimension
PointType
 
typedef VectorDataIOBase Self
 
typedef std::streamoff SizeType
 
typedef itk::Vector< double,
VDimension
SpacingType
 
typedef itk::LightProcessObject Superclass
 

Public Member Functions

virtual bool CanReadFile (const char *) const
 
virtual bool CanWriteFile (const char *) const
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void Read (itk::DataObject *data)
 
virtual void Write (const itk::DataObject *data, char **papszOptions=NULL)
 
- Public Member Functions inherited from otb::VectorDataIOBase
virtual bool CanStreamRead () const
 
virtual bool CanStreamWrite () const
 
virtual ByteOrder GetByteOrder () const
 
std::string GetByteOrderAsString (ByteOrder) const
 
virtual const char * GetFileName () const
 
virtual void SetByteOrder (const ByteOrder _arg)
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
virtual void SetFileName (const char *_arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 OGRVectorDataIO ()
 
virtual ~OGRVectorDataIO ()
 
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 
- Protected Member Functions inherited from otb::VectorDataIOBase
 VectorDataIOBase ()
 
virtual ~VectorDataIOBase ()
 
virtual void Reset (const bool freeDynamic=true)
 

Private Member Functions

 OGRVectorDataIO (const Self &)
 
std::string GetOGRDriverName (std::string name) const
 
void operator= (const Self &)
 

Private Attributes

OGRDataSource * m_DataSource
 

Additional Inherited Members

- Static Public Attributes inherited from otb::VectorDataIOBase
static const unsigned int VDimension = 3
 
- Protected Attributes inherited from otb::VectorDataIOBase
ByteOrder m_ByteOrder
 
std::string m_FileName
 
bool m_Initialized
 

Detailed Description

ImageIO object for reading and writing OGR format vector data.

ImageIO object for reading and writing OGR format vector data: it can handle Esri Shapefile (shp), MapInfo (map) and Geography Markup Language (GML) and possibly other OGR formats.

Definition at line 40 of file otbOGRVectorDataIO.h.

Member Typedef Documentation

Byte order typedef

Definition at line 55 of file otbOGRVectorDataIO.h.

Definition at line 64 of file otbOGRVectorDataIO.h.

Definition at line 49 of file otbOGRVectorDataIO.h.

Definition at line 68 of file otbOGRVectorDataIO.h.

Definition at line 67 of file otbOGRVectorDataIO.h.

Definition at line 66 of file otbOGRVectorDataIO.h.

Definition at line 65 of file otbOGRVectorDataIO.h.

Definition at line 62 of file otbOGRVectorDataIO.h.

Definition at line 63 of file otbOGRVectorDataIO.h.

Definition at line 73 of file otbOGRVectorDataIO.h.

Definition at line 70 of file otbOGRVectorDataIO.h.

Definition at line 81 of file otbOGRVectorDataIO.h.

Definition at line 48 of file otbOGRVectorDataIO.h.

Definition at line 69 of file otbOGRVectorDataIO.h.

Definition at line 77 of file otbOGRVectorDataIO.h.

Definition at line 76 of file otbOGRVectorDataIO.h.

Definition at line 75 of file otbOGRVectorDataIO.h.

Definition at line 74 of file otbOGRVectorDataIO.h.

Standard class typedefs.

Definition at line 46 of file otbOGRVectorDataIO.h.

Definition at line 80 of file otbOGRVectorDataIO.h.

Definition at line 47 of file otbOGRVectorDataIO.h.

Definition at line 79 of file otbOGRVectorDataIO.h.

Definition at line 78 of file otbOGRVectorDataIO.h.

Data typedef

Definition at line 61 of file otbOGRVectorDataIO.h.

typedef VertexListType::ConstPointer otb::OGRVectorDataIO::VertexListConstPointerType

Definition at line 72 of file otbOGRVectorDataIO.h.

Definition at line 71 of file otbOGRVectorDataIO.h.

Constructor & Destructor Documentation

otb::OGRVectorDataIO::OGRVectorDataIO ( )
protected

Constructor.

Definition at line 38 of file otbOGRVectorDataIO.cxx.

References NULL.

otb::OGRVectorDataIO::~OGRVectorDataIO ( )
protectedvirtual

Destructor.

Definition at line 46 of file otbOGRVectorDataIO.cxx.

References m_DataSource, and NULL.

otb::OGRVectorDataIO::OGRVectorDataIO ( const Self )
private

Member Function Documentation

bool otb::OGRVectorDataIO::CanReadFile ( const char *  filename) const
virtual

Determine the file type. Returns true if this VectorDataIO can read the file specified.

Implements otb::VectorDataIOBase.

Definition at line 56 of file otbOGRVectorDataIO.cxx.

References NULL.

bool otb::OGRVectorDataIO::CanWriteFile ( const char *  filename) const
virtual

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements otb::VectorDataIOBase.

Definition at line 179 of file otbOGRVectorDataIO.cxx.

References GetOGRDriverName().

virtual::itk::LightObject::Pointer otb::OGRVectorDataIO::CreateAnother ( void  ) const
virtual const char* otb::OGRVectorDataIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::VectorDataIOBase.

std::string otb::OGRVectorDataIO::GetOGRDriverName ( std::string  name) const
private

Definition at line 301 of file otbOGRVectorDataIO.cxx.

Referenced by CanWriteFile(), and Write().

static Pointer otb::OGRVectorDataIO::New ( )
static

Method for creation through the object factory.

void otb::OGRVectorDataIO::operator= ( const Self )
private
void otb::OGRVectorDataIO::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protectedvirtual

Reimplemented from otb::VectorDataIOBase.

Definition at line 71 of file otbOGRVectorDataIO.cxx.

References otb::VectorDataIOBase::PrintSelf().

void otb::OGRVectorDataIO::Read ( itk::DataObject data)
virtual

Reads the data from disk into the memory buffer provided.

retrieving layer and property

Create the document node

Retrieving the fields types

Adding the layer to the data tree

This is not good but we do not have the choice if we want to get a hook on the internal structure

IO class helper to convert ogr layer

Implements otb::VectorDataIOBase.

Definition at line 80 of file otbOGRVectorDataIO.cxx.

References otb::DOCUMENT, otb::OGRIOHelper::New(), NULL, otbMsgDebugMacro, otbMsgDevMacro, and otb::MetaDataKey::ProjectionRefKey.

void otb::OGRVectorDataIO::Write ( const itk::DataObject data,
char **  papszOptions = NULL 
)
virtual

Member Data Documentation

OGRDataSource* otb::OGRVectorDataIO::m_DataSource
private

Definition at line 117 of file otbOGRVectorDataIO.h.

Referenced by Write(), and ~OGRVectorDataIO().


The documentation for this class was generated from the following files: