diff --git a/Code/Projections/otbVectorDataTransformFilter.txx b/Code/Projections/otbVectorDataTransformFilter.txx index 85bbd48cab56453fa54e792784651e87674ae160..e0893288bb50696a38fa00f72b3ebffadacd4dca 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()) {