From cdf7043b05e34f8d710b199317ff8175475ec33a Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Wed, 8 Sep 2010 15:01:30 +0200 Subject: [PATCH] ENH : correct origin point --- .../Code/Projections/otbGenericRSResampleImageFilter.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx b/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx index 3e12c9a79d..4f953cabca 100644 --- a/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx +++ b/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx @@ -55,8 +55,11 @@ int otbGenericRSResampleImageFilter(int argc, char* argv[]) SizeType size; size.Fill(isize); + // OriginType origin; - origin.Fill(1500); + origin[0] = 367340; + origin[1] = 4.83467e+06; + // Build the ouput projection ref : Lambert II ref OGRSpatialReference oSRS; @@ -101,7 +104,7 @@ int otbGenericRSResampleImageFilter(int argc, char* argv[]) // Write the resampled image typedef otb::StreamingImageFileWriter<ImageType> WriterType; WriterType::Pointer writer= WriterType::New(); - writer->SetTilingStreamDivisions(); + writer->SetTilingStreamDivisions(4); writer->WriteGeomFileOn(); writer->SetFileName(outfname); writer->SetInput(resampler->GetOutput()); -- GitLab