diff --git a/Modules/Filtering/VectorDataRendering/include/otbVectorDataToMapFilter.txx b/Modules/Filtering/VectorDataRendering/include/otbVectorDataToMapFilter.txx index 116f309a90ea6afc195f9142968abda183cfec50..24e660e535e1773e117da0ea21c2e653e8bb9338 100644 --- a/Modules/Filtering/VectorDataRendering/include/otbVectorDataToMapFilter.txx +++ b/Modules/Filtering/VectorDataRendering/include/otbVectorDataToMapFilter.txx @@ -184,7 +184,10 @@ VectorDataToMapFilter<TVectorData, TImage> // Set spacing and origin outputPtr->SetSignedSpacing(m_Spacing); outputPtr->SetOrigin(m_Origin); - outputPtr->SetDirection(m_Direction); + // outputPtr->SetDirection(m_Direction); + // As the direction cannot be changed in this filter there is no need to set + // the direction in the output image. Moreover, setting the direction to + // identity no that we enforce positive spacing leads to incoherences itk::MetaDataDictionary& dict = outputPtr->GetMetaDataDictionary(); itk::EncapsulateMetaData<std::string> (dict, MetaDataKey::ProjectionRefKey,