diff --git a/Examples/Projections/VectorDataExtractROIExample.cxx b/Examples/Projections/VectorDataExtractROIExample.cxx index 42491f27b25c2d9651fa325e1b48c0a005516115..edfd7979af344dd138f42564fa46adb93589a870 100644 --- a/Examples/Projections/VectorDataExtractROIExample.cxx +++ b/Examples/Projections/VectorDataExtractROIExample.cxx @@ -95,6 +95,8 @@ int main( int argc, char* argv[] ) otb::ImageMetadataInterface::Pointer imageMetadataInterface = otb::ImageMetadataInterface::New(); region.SetRegionProjection(imageMetadataInterface->GetProjectionRef(imageReader->GetOutput()->GetMetaDataDictionary())); + region.SetKeywordList(imageReader->GetOutput()->GetImageKeywordlist()); + reader->SetFileName(inVectorName); filter->SetInput(reader->GetOutput());