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>
56 typedef typename DataNodeType::Pointer DataNodePointerType;
58 this->GetOutputVectorData()->Clear();
59 DataNodePointerType root = DataNodeType::New();
60 root->SetNodeId(
"Root");
61 this->GetOutputVectorData()->GetDataTree()->SetRoot(root);
63 DataNodePointerType folder = DataNodeType::New();
66 DataNodePointerType document = DataNodeType::New();
69 this->GetOutputVectorData()->GetDataTree()->Add(document, this->GetOutputVectorData()->GetDataTree()->GetRoot()->Get());
70 this->GetOutputVectorData()->GetDataTree()->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);