From 63cbcfb3a4033c2684be77e038ab1d8757410b55 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 18 May 2011 15:00:00 +0200
Subject: [PATCH] ENH : copy the fields in the output vectordata

---
 Code/Projections/otbVectorDataTransformFilter.txx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Projections/otbVectorDataTransformFilter.txx b/Code/Projections/otbVectorDataTransformFilter.txx
index 85bbd48cab..e0893288bb 100644
--- a/Code/Projections/otbVectorDataTransformFilter.txx
+++ b/Code/Projections/otbVectorDataTransformFilter.txx
@@ -51,7 +51,6 @@ typename VectorDataTransformFilter<TInputVectorData, TOutputVectorData>::PointTy
 VectorDataTransformFilter<TInputVectorData, TOutputVectorData>
 ::ReprojectPoint(PointType pointCoord) const
 {
-
   itk::Point<double, 2> point;
   point = m_Transform->TransformPoint(pointCoord);
   return point;
@@ -188,6 +187,7 @@ VectorDataTransformFilter<TInputVectorData, TOutputVectorData>
     OutputDataNodePointerType newDataNode   = OutputDataNodeType::New();
     newDataNode->SetNodeType(dataNode->GetNodeType());
     newDataNode->SetNodeId(dataNode->GetNodeId());
+    newDataNode->CopyFieldList(dataNode);
 
     switch(dataNode->GetNodeType())
       {
-- 
GitLab