OTB  9.0.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
otb::OGRLayerStreamStitchingFilter< TInputImage > Class Template Reference

#include <otbOGRLayerStreamStitchingFilter.h>

+ Inheritance diagram for otb::OGRLayerStreamStitchingFilter< TInputImage >:
+ Collaboration diagram for otb::OGRLayerStreamStitchingFilter< TInputImage >:

Classes

struct  FeatureStruct
 
struct  FusionStruct
 
struct  SortFeatureStruct
 

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::IndexType IndexType
 
typedef TInputImage InputImageType
 
typedef InputImageType::IndexType InputIndexType
 
typedef InputImageType::PixelType InputPixelType
 
typedef ogr::Feature OGRFeatureType
 
typedef ogr::Layer OGRLayerType
 
typedef InputImageType::PointType OriginType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InputImageType::RegionType RegionType
 
typedef OGRLayerStreamStitchingFilter Self
 
typedef InputImageType::SizeType SizeType
 
typedef InputImageType::SpacingType SpacingType
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
void GenerateData () override
 
virtual const InputImageTypeGetInput (void)
 
virtual const char * GetNameOfClass () const
 
const OGRLayerTypeGetOGRLayer (void) const
 
virtual SizeType GetStreamSize ()
 
virtual void SetInput (const InputImageType *input)
 
void SetOGRLayer (const OGRLayerType &ogrLayer)
 
virtual void SetStreamSize (SizeType _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

double GetLengthOGRGeometryCollection (OGRGeometryCollection *intersection)
 
 OGRLayerStreamStitchingFilter ()
 
 ~OGRLayerStreamStitchingFilter () override
 
void ProcessStreamingLine (bool line, itk::ProgressReporter &progress)
 

Protected Attributes

struct otb::OGRLayerStreamStitchingFilter::SortFeatureStruct SortFeature
 

Private Member Functions

 OGRLayerStreamStitchingFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

OGRLayerType m_OGRLayer
 
unsigned int m_Radius
 
SizeType m_StreamSize {0,0}
 

Detailed Description

template<class TInputImage>
class otb::OGRLayerStreamStitchingFilter< TInputImage >

This filter fusion the geometries in a layer (OGRLayer) along streaming lines. It is a in-line filter which means that the result of the fusion overwrites the input layer. The strategy for merging polygons is quite simple. A polygon P1 is merge with a polygon P2 if:

Definition at line 55 of file otbOGRLayerStreamStitchingFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage >
typedef itk::SmartPointer<const Self> otb::OGRLayerStreamStitchingFilter< TInputImage >::ConstPointer

Definition at line 62 of file otbOGRLayerStreamStitchingFilter.h.

◆ IndexType

template<class TInputImage >
typedef InputImageType::IndexType otb::OGRLayerStreamStitchingFilter< TInputImage >::IndexType

Definition at line 72 of file otbOGRLayerStreamStitchingFilter.h.

◆ InputImageType

template<class TInputImage >
typedef TInputImage otb::OGRLayerStreamStitchingFilter< TInputImage >::InputImageType

Definition of the input image

Definition at line 65 of file otbOGRLayerStreamStitchingFilter.h.

◆ InputIndexType

template<class TInputImage >
typedef InputImageType::IndexType otb::OGRLayerStreamStitchingFilter< TInputImage >::InputIndexType

Definition at line 67 of file otbOGRLayerStreamStitchingFilter.h.

◆ InputPixelType

template<class TInputImage >
typedef InputImageType::PixelType otb::OGRLayerStreamStitchingFilter< TInputImage >::InputPixelType

Definition at line 66 of file otbOGRLayerStreamStitchingFilter.h.

◆ OGRFeatureType

template<class TInputImage >
typedef ogr::Feature otb::OGRLayerStreamStitchingFilter< TInputImage >::OGRFeatureType

Definition at line 75 of file otbOGRLayerStreamStitchingFilter.h.

◆ OGRLayerType

template<class TInputImage >
typedef ogr::Layer otb::OGRLayerStreamStitchingFilter< TInputImage >::OGRLayerType

Definition at line 74 of file otbOGRLayerStreamStitchingFilter.h.

◆ OriginType

template<class TInputImage >
typedef InputImageType::PointType otb::OGRLayerStreamStitchingFilter< TInputImage >::OriginType

Definition at line 71 of file otbOGRLayerStreamStitchingFilter.h.

◆ Pointer

template<class TInputImage >
typedef itk::SmartPointer<Self> otb::OGRLayerStreamStitchingFilter< TInputImage >::Pointer

Definition at line 61 of file otbOGRLayerStreamStitchingFilter.h.

◆ RegionType

template<class TInputImage >
typedef InputImageType::RegionType otb::OGRLayerStreamStitchingFilter< TInputImage >::RegionType

Definition at line 69 of file otbOGRLayerStreamStitchingFilter.h.

◆ Self

template<class TInputImage >
typedef OGRLayerStreamStitchingFilter otb::OGRLayerStreamStitchingFilter< TInputImage >::Self

typedef for the classes standards.

Definition at line 59 of file otbOGRLayerStreamStitchingFilter.h.

◆ SizeType

template<class TInputImage >
typedef InputImageType::SizeType otb::OGRLayerStreamStitchingFilter< TInputImage >::SizeType

Definition at line 68 of file otbOGRLayerStreamStitchingFilter.h.

◆ SpacingType

template<class TInputImage >
typedef InputImageType::SpacingType otb::OGRLayerStreamStitchingFilter< TInputImage >::SpacingType

Definition at line 70 of file otbOGRLayerStreamStitchingFilter.h.

◆ Superclass

template<class TInputImage >
typedef itk::ProcessObject otb::OGRLayerStreamStitchingFilter< TInputImage >::Superclass

Definition at line 60 of file otbOGRLayerStreamStitchingFilter.h.

Constructor & Destructor Documentation

◆ OGRLayerStreamStitchingFilter() [1/2]

template<class TImage >
otb::OGRLayerStreamStitchingFilter< TImage >::OGRLayerStreamStitchingFilter
protected

◆ ~OGRLayerStreamStitchingFilter()

template<class TInputImage >
otb::OGRLayerStreamStitchingFilter< TInputImage >::~OGRLayerStreamStitchingFilter ( )
inlineoverrideprotected

Definition at line 110 of file otbOGRLayerStreamStitchingFilter.h.

◆ OGRLayerStreamStitchingFilter() [2/2]

template<class TInputImage >
otb::OGRLayerStreamStitchingFilter< TInputImage >::OGRLayerStreamStitchingFilter ( const Self )
privatedelete

Member Function Documentation

◆ CreateAnother()

template<class TInputImage >
virtual::itk::LightObject::Pointer otb::OGRLayerStreamStitchingFilter< TInputImage >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TImage >
void otb::OGRLayerStreamStitchingFilter< TImage >::GenerateData
override

Generate Data method. This method must be called explicitly (not through the Update method).

Definition at line 351 of file otbOGRLayerStreamStitchingFilter.hxx.

◆ GetInput()

template<class TInputImage >
const OGRLayerStreamStitchingFilter< TInputImage >::InputImageType * otb::OGRLayerStreamStitchingFilter< TInputImage >::GetInput ( void  )
virtual

Get the input image.

Definition at line 47 of file otbOGRLayerStreamStitchingFilter.hxx.

◆ GetLengthOGRGeometryCollection()

template<class TInputImage >
double otb::OGRLayerStreamStitchingFilter< TInputImage >::GetLengthOGRGeometryCollection ( OGRGeometryCollection *  intersection)
protected

get length in case of OGRGeometryCollection. This function recodes the get_lenght method available since gdal 1.8.0 in the case of OGRGeometryCollection. The aim is to allow accessing polygon stiching functionalities with gdal 1.6.

Definition at line 71 of file otbOGRLayerStreamStitchingFilter.hxx.

◆ GetNameOfClass()

template<class TInputImage >
virtual const char* otb::OGRLayerStreamStitchingFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Return the name of the class.

◆ GetOGRLayer()

template<class TInputImage >
const OGRLayerStreamStitchingFilter< TInputImage >::OGRLayerType & otb::OGRLayerStreamStitchingFilter< TInputImage >::GetOGRLayer ( void  ) const

Get the input OGRLayer

Definition at line 65 of file otbOGRLayerStreamStitchingFilter.hxx.

◆ GetStreamSize()

template<class TInputImage >
virtual SizeType otb::OGRLayerStreamStitchingFilter< TInputImage >::GetStreamSize ( )
virtual

Get stream size

◆ New()

template<class TInputImage >
static Pointer otb::OGRLayerStreamStitchingFilter< TInputImage >::New ( )
static

Method for management of the object factory.

◆ operator=()

template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::operator= ( const Self )
privatedelete

◆ ProcessStreamingLine()

template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::ProcessStreamingLine ( bool  line,
itk::ProgressReporter &  progress 
)
protected

◆ SetInput()

template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::SetInput ( const InputImageType input)
virtual

Definition at line 41 of file otbOGRLayerStreamStitchingFilter.hxx.

◆ SetOGRLayer()

template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::SetOGRLayer ( const OGRLayerType ogrLayer)

Set the input OGRLayer

Definition at line 58 of file otbOGRLayerStreamStitchingFilter.hxx.

◆ SetStreamSize()

template<class TInputImage >
virtual void otb::OGRLayerStreamStitchingFilter< TInputImage >::SetStreamSize ( SizeType  _arg)
virtual

Set the stream size. As this filter is intended to be used right after the StreamingVectorizedSegmentation, use the GetStreamSize() method on it to get the correct stream size.

Member Data Documentation

◆ m_OGRLayer

template<class TInputImage >
OGRLayerType otb::OGRLayerStreamStitchingFilter< TInputImage >::m_OGRLayer
private

Definition at line 154 of file otbOGRLayerStreamStitchingFilter.h.

◆ m_Radius

template<class TInputImage >
unsigned int otb::OGRLayerStreamStitchingFilter< TInputImage >::m_Radius
private

Definition at line 153 of file otbOGRLayerStreamStitchingFilter.h.

◆ m_StreamSize

template<class TInputImage >
SizeType otb::OGRLayerStreamStitchingFilter< TInputImage >::m_StreamSize {0,0}
private

◆ SortFeature

template<class TInputImage >
struct otb::OGRLayerStreamStitchingFilter::SortFeatureStruct otb::OGRLayerStreamStitchingFilter< TInputImage >::SortFeature
protected

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