Skip to content
Snippets Groups Projects
Commit 5785e3d6 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing bug 497: Wrong order in VectorData creation (node folder before...

BUG: Fixing bug 497: Wrong order in VectorData creation (node folder before node document) resulting in VectorData that can not be written in KML
parent 0a299656
Branches
Tags
No related merge requests found
......@@ -85,8 +85,8 @@ ConcatenateVectorDataFilter<TVectorData>
typename DataNodeType::Pointer outputRoot = this->GetOutput()->GetDataTree()->GetRoot()->Get();
// Adding the layer to the data tree
this->GetOutput()->GetDataTree()->Add(m_Folder, outputRoot);
this->GetOutput()->GetDataTree()->Add(m_Document , m_Folder);
this->GetOutput()->GetDataTree()->Add(m_Document, outputRoot);
this->GetOutput()->GetDataTree()->Add(m_Folder, m_Document);
// Retrieve all the inputs
for(unsigned int idx = 0; idx < this->GetNumberOfInputs(); ++idx)
......
......@@ -69,8 +69,8 @@ PersistentImageToVectorDataFilter<TImage, TOutputVectorData>
DataNodePointerType document = DataNodeType::New();
document->SetNodeType(otb::DOCUMENT);
this->GetOutputVectorData()->GetDataTree()->Add(folder, this->GetOutputVectorData()->GetDataTree()->GetRoot()->Get());
this->GetOutputVectorData()->GetDataTree()->Add(document , folder);
this->GetOutputVectorData()->GetDataTree()->Add(document, this->GetOutputVectorData()->GetDataTree()->GetRoot()->Get());
this->GetOutputVectorData()->GetDataTree()->Add(folder , document);
}
template<class TImage, class TOutputVectorData>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment