OTB  9.0.0
Orfeo Toolbox
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

#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 SelfConstPointer
 
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
typedef itk::SmartPointer< SelfPointer
 
typedef itk::Point< double, VDimensionPointType
 
typedef VectorDataIOBase Self
 
typedef itk::Vector< double, VDimensionSpacingType
 
typedef itk::LightProcessObject Superclass
 
enum  ByteOrder {
  BigEndian,
  LittleEndian,
  OrderNotApplicable
}
 
typedef std::streamoff SizeType
 

Public Member Functions

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

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

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

Private Member Functions

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

Private Attributes

GDALDataset * m_DataSource
 
const std::map< std::string, std::string > m_OGRExtensionsToDrivers
 

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
 
bool m_Initialized
 
std::string m_FileName
 

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 47 of file otbOGRVectorDataIO.h.

Member Typedef Documentation

◆ ByteOrder

typedef Superclass::ByteOrder otb::OGRVectorDataIO::ByteOrder

Byte order typedef

Definition at line 60 of file otbOGRVectorDataIO.h.

◆ ChildrenListType

typedef InternalTreeNodeType::ChildrenListType otb::OGRVectorDataIO::ChildrenListType

Definition at line 69 of file otbOGRVectorDataIO.h.

◆ ConstPointer

typedef itk::SmartPointer<const Self> otb::OGRVectorDataIO::ConstPointer

Definition at line 54 of file otbOGRVectorDataIO.h.

◆ DataNodePointerType

Definition at line 73 of file otbOGRVectorDataIO.h.

◆ DataNodeType

Definition at line 72 of file otbOGRVectorDataIO.h.

◆ DataTreeConstPointerType

typedef DataTreeType::ConstPointer otb::OGRVectorDataIO::DataTreeConstPointerType

Definition at line 71 of file otbOGRVectorDataIO.h.

◆ DataTreePointerType

typedef DataTreeType::Pointer otb::OGRVectorDataIO::DataTreePointerType

Definition at line 70 of file otbOGRVectorDataIO.h.

◆ DataTreeType

Definition at line 67 of file otbOGRVectorDataIO.h.

◆ InternalTreeNodeType

typedef DataTreeType::TreeNodeType otb::OGRVectorDataIO::InternalTreeNodeType

Definition at line 68 of file otbOGRVectorDataIO.h.

◆ LinePointerType

Definition at line 78 of file otbOGRVectorDataIO.h.

◆ LineType

Definition at line 75 of file otbOGRVectorDataIO.h.

◆ OriginType

Definition at line 86 of file otbOGRVectorDataIO.h.

◆ Pointer

typedef itk::SmartPointer<Self> otb::OGRVectorDataIO::Pointer

Definition at line 53 of file otbOGRVectorDataIO.h.

◆ PointType

Definition at line 74 of file otbOGRVectorDataIO.h.

◆ PolygonListPointerType

Definition at line 82 of file otbOGRVectorDataIO.h.

◆ PolygonListType

Definition at line 81 of file otbOGRVectorDataIO.h.

◆ PolygonPointerType

Definition at line 80 of file otbOGRVectorDataIO.h.

◆ PolygonType

Definition at line 79 of file otbOGRVectorDataIO.h.

◆ Self

Standard class typedefs.

Definition at line 51 of file otbOGRVectorDataIO.h.

◆ SpacingType

typedef Superclass::SpacingType otb::OGRVectorDataIO::SpacingType

Definition at line 85 of file otbOGRVectorDataIO.h.

◆ Superclass

Definition at line 52 of file otbOGRVectorDataIO.h.

◆ VectorDataConstPointerType

Definition at line 84 of file otbOGRVectorDataIO.h.

◆ VectorDataPointerType

Definition at line 83 of file otbOGRVectorDataIO.h.

◆ VectorDataType

Data typedef

Definition at line 66 of file otbOGRVectorDataIO.h.

◆ VertexListConstPointerType

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

Definition at line 77 of file otbOGRVectorDataIO.h.

◆ VertexListType

Definition at line 76 of file otbOGRVectorDataIO.h.

Constructor & Destructor Documentation

◆ OGRVectorDataIO() [1/2]

otb::OGRVectorDataIO::OGRVectorDataIO ( )
protected

Constructor.

◆ ~OGRVectorDataIO()

otb::OGRVectorDataIO::~OGRVectorDataIO ( )
overrideprotected

Destructor.

◆ OGRVectorDataIO() [2/2]

otb::OGRVectorDataIO::OGRVectorDataIO ( const Self )
privatedelete

Member Function Documentation

◆ CanReadFile()

bool otb::OGRVectorDataIO::CanReadFile ( const char *  ) const
overridevirtual

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

Implements otb::VectorDataIOBase.

◆ CanWriteFile()

bool otb::OGRVectorDataIO::CanWriteFile ( const char *  ) const
overridevirtual

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

Implements otb::VectorDataIOBase.

◆ CloseInternalDataSource()

void otb::OGRVectorDataIO::CloseInternalDataSource ( )
private

◆ CreateAnother()

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

◆ GetNameOfClass()

virtual const char* otb::OGRVectorDataIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::VectorDataIOBase.

◆ GetOGRDriverName()

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

◆ New()

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

Method for creation through the object factory.

◆ operator=()

void otb::OGRVectorDataIO::operator= ( const Self )
privatedelete

◆ PrintSelf()

void otb::OGRVectorDataIO::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

◆ Read()

void otb::OGRVectorDataIO::Read ( itk::DataObject *  data)
overridevirtual

Reads the data from disk into the memory buffer provided.

Implements otb::VectorDataIOBase.

◆ Write()

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

Writes the data to disk from the memory buffer provided

Implements otb::VectorDataIOBase.

Member Data Documentation

◆ m_DataSource

GDALDataset* otb::OGRVectorDataIO::m_DataSource
private

Definition at line 125 of file otbOGRVectorDataIO.h.

◆ m_OGRExtensionsToDrivers

const std::map<std::string, std::string> otb::OGRVectorDataIO::m_OGRExtensionsToDrivers
private
Initial value:
= {
{".SHP", "ESRI Shapefile"}, {".TAB", "MapInfo File"}, {".GML", "GML"}, {".GPX", "GPX"}, {".SQLITE", "SQLite"}, {".KML", "KML"},
{".GMT", "OGR_GMT"}, {".GPKG", "GPKG"}, {".JSON", "GeoJSON"}, {".GEOJSON", "GeoJSON"}}

Definition at line 127 of file otbOGRVectorDataIO.h.


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