From 7bd69f245f5bf2f30ea0e763ff28c314c6d8d0e7 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Mon, 12 Dec 2011 17:02:15 +0100
Subject: [PATCH] ENH: add default value to transmercator fields

---
 .../otbWrapperMapProjectionParametersHandler.cxx           | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx b/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
index 13f8a13a73..860439ccb5 100644
--- a/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
+++ b/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
@@ -68,18 +68,21 @@ void MapProjectionParametersHandler::AddMapProjectionParameters( Application::Po
 
   std::ostringstream subParamKey;
   subParamKey<<oss.str()<<".falseeasting";
-  app->AddParameter(ParameterType_Float, subParamKey.str(), "False easting");
+  app->AddParameter(ParameterType_Float, subParamKey.str(), "False easting");  
   app->SetParameterDescription( subParamKey.str(), " Transmercator false easting value.");
+  app->SetDefaultParameterFloat(subParamKey.str(),0.);
 
   subParamKey.str("");
   subParamKey<<oss.str()<<".falsenorthing";
   app->AddParameter(ParameterType_Float, subParamKey.str(), "False northing");
   app->SetParameterDescription(subParamKey.str(), " Transmercator false northing value.");
-
+  app->SetDefaultParameterFloat(subParamKey.str(),0.);
+ 
   subParamKey.str("");
   subParamKey<<oss.str()<<".scale";
   app->AddParameter(ParameterType_Float, subParamKey.str(), "Scale factor");
   app->SetParameterDescription(subParamKey.str(), " Transmercator scale factor value.");
+  app->SetDefaultParameterFloat(subParamKey.str(),1.);
 
   // wgs84
   oss.str("");
-- 
GitLab