Commit 9a45bda7 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: use the new MPIVrtWriter in OutputImageParameter

parent d5b2026d
......@@ -263,9 +263,14 @@ ClampAndWriteVectorImage( TInput * in ,
if(extension == ".vrt")
{
// Use the WriteMPI function
// TODO : create a dedicated filter
//~ WriteMPI(clampFilter->GetOutput(),filename,ramValue);
// Use the MPIVrtWriter
typedef otb::MPIVrtWriter<TOutput> VRTWriterType;
typename VRTWriterType::Pointer vrtWriter = VRTWriterType::New();
vrtWriter->SetInput(clampFilter->GetOutput());
vrtWriter->SetFileName(filename);
vrtWriter->SetAvailableRAM(ramValue);
ret.second = vrtWriter.GetPointer();
}
#ifdef OTB_USE_SPTW
else if (extension == ".tif")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment