Commit a882e973 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: remove dirty trick in sensor model test

parent e3755fa3
......@@ -16,8 +16,6 @@
=========================================================================*/
#include <iomanip>
#include <iostream>
......@@ -26,8 +24,6 @@
#include "otbForwardSensorModel.h"
#include "otbInverseSensorModel.h"
#include "base/ossimKeywordlist.h"
int otbSensorModel(int argc, char* argv[])
{
if (argc != 3)
......@@ -54,30 +50,6 @@ int otbSensorModel(int argc, char* argv[])
file << "*** KEYWORD LIST ***\n";
file << reader->GetOutput()->GetImageKeywordlist();
//** Truncate precision of meters_per_pixel */
ossimKeywordlist geom_kwl;
ossimString s;
double value;
reader->GetOutput()->GetImageKeywordlist().convertToOSSIMKeywordlist(geom_kwl);
file << std::setprecision(5);
s = geom_kwl.find("meters_per_pixel_x");
if (s != "")
{
value = s.toDouble();
file << "truncate_meter_per_pixel_x " << value << std::endl;
}
s = geom_kwl.find("meters_per_pixel_y");
if (s != "")
{
value = s.toDouble();
file << "truncate_meter_per_pixel_y " << value << std::endl;
}
file << std::setprecision(15);
file << "\n*** TRANSFORM ***\n";
typedef otb::ForwardSensorModel<double> ForwardSensorModelType;
......
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