OTB  6.7.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 Self
ConstPointer
 
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 Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

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)
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

double GetLengthOGRGeometryCollection (OGRGeometryCollection *intersection)
 
 OGRLayerStreamStitchingFilter ()
 
 ~OGRLayerStreamStitchingFilter () override
 
void ProcessStreamingLine (bool line, itk::ProgressReporter &progress)
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateInputRequestedRegion ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation ()
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

struct
otb::OGRLayerStreamStitchingFilter::SortFeatureStruct 
SortFeature
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Private Member Functions

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

Private Attributes

OGRLayerType m_OGRLayer
 
unsigned int m_Radius
 
SizeType m_StreamSize
 

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

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

Definition at line 64 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 74 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition of the input image

Definition at line 67 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 69 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 68 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 77 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 76 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 73 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 63 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 71 of file otbOGRLayerStreamStitchingFilter.h.

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

typedef for the classes standards.

Definition at line 61 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 70 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 72 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 62 of file otbOGRLayerStreamStitchingFilter.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file otbOGRLayerStreamStitchingFilter.hxx.

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

Definition at line 112 of file otbOGRLayerStreamStitchingFilter.h.

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

Member Function Documentation

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

Reimplemented from itk::Object.

template<class TImage >
void otb::OGRLayerStreamStitchingFilter< TImage >::GenerateData ( void  )
overridevirtual

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

Reimplemented from itk::ProcessObject.

Definition at line 368 of file otbOGRLayerStreamStitchingFilter.hxx.

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

Get the input image.

Definition at line 53 of file otbOGRLayerStreamStitchingFilter.hxx.

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 83 of file otbOGRLayerStreamStitchingFilter.hxx.

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

Return the name of the class.

Reimplemented from itk::ProcessObject.

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

Get the input OGRLayer

Definition at line 75 of file otbOGRLayerStreamStitchingFilter.hxx.

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

Get stream size

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

Method for management of the object factory.

template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::operator= ( const Self )
privatedelete
template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::ProcessStreamingLine ( bool  line,
itk::ProgressReporter progress 
)
protected
template<class TInputImage >
void otb::OGRLayerStreamStitchingFilter< TInputImage >::SetInput ( const InputImageType input)
virtual

Definition at line 44 of file otbOGRLayerStreamStitchingFilter.hxx.

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

Set the input OGRLayer

Definition at line 66 of file otbOGRLayerStreamStitchingFilter.hxx.

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

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

Definition at line 151 of file otbOGRLayerStreamStitchingFilter.h.

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

Definition at line 150 of file otbOGRLayerStreamStitchingFilter.h.

template<class TInputImage >
SizeType otb::OGRLayerStreamStitchingFilter< TInputImage >::m_StreamSize
private

Definition at line 149 of file otbOGRLayerStreamStitchingFilter.h.

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

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