22 #ifndef otbPersistentImageToVectorDataFilter_hxx
23 #define otbPersistentImageToVectorDataFilter_hxx
30 template <
class TImage,
class TOutputVectorData>
33 m_ExtractFilter = ExtractImageFilterType::New();
34 m_OutputVectorData = OutputVectorDataType::New();
36 m_VectorDataIO = OGRVectorDataIOType::New();
39 template <
class TImage,
class TOutputVectorData>
43 return m_OutputVectorData;
46 template <
class TImage,
class TOutputVectorData>
52 template <
class TImage,
class TOutputVectorData>
55 typedef typename OutputVectorDataType::DataNodeType DataNodeType;
56 typedef typename DataNodeType::Pointer DataNodePointerType;
58 this->GetOutputVectorData()->Clear();
63 DataNodePointerType folder = DataNodeType::New();
66 DataNodePointerType document = DataNodeType::New();
69 this->GetOutputVectorData()->Add(document, this->GetOutputVectorData()->GetRoot());
70 this->GetOutputVectorData()->Add(folder, document);
73 template <
class TImage,
class TOutputVectorData>
78 template <
class TImage,
class TOutputVectorData>
89 concatenate->AddInput(output);
90 concatenate->AddInput(currentTileVD);
91 concatenate->Update();
93 concatenate->GetOutput()->SetMetaDataDictionary(currentTileVD->GetMetaDataDictionary());
96 output->Graft(concatenate->GetOutput());
99 template <
class TImage,
class TOutputVectorData>
102 Superclass::PrintSelf(os, indent);
void Synthetize(void) override
void PrintSelf(std::ostream &os, itk::Indent indent) const override
OutputVectorDataType * GetOutputVectorData() const
void AllocateOutputs() override
void Reset(void) override
ConcatenateVectorDataFilterType::Pointer ConcatenateVectorDataFilterPointerType
void GenerateData() override
PersistentImageToVectorDataFilter()
TOutputVectorData::Pointer OutputVectorDataPointerType
TOutputVectorData OutputVectorDataType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.