From aa2a0459f8e733ac531e409400e63364adda14cd Mon Sep 17 00:00:00 2001
From: Jonathan Guinet <jonathan.guinet@c-s.fr>
Date: Mon, 25 Jun 2012 10:47:03 +0200
Subject: [PATCH] ENH: a default value is set to MapProjectionParameters when
 using UTM option.

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

diff --git a/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx b/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
index 46e49b1681..a9045ed44d 100644
--- a/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
+++ b/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
@@ -41,12 +41,14 @@ void MapProjectionParametersHandler::AddMapProjectionParameters( Application::Po
   app->AddParameter(ParameterType_Int, oss.str(), "Zone number");
   app->SetParameterDescription(oss.str(),"The zone number ranges from 1 to 60 and allows to define the transverse mercator projection (along with the hemisphere)");
   app->SetMinimumParameterIntValue(oss.str(), 1);
+  app->SetDefaultParameterInt(oss.str(), 31);
   
   oss.str("");
   oss <<key<<".utm" <<".northhem";
   app->AddParameter(ParameterType_Empty, oss.str(),  "Northern Hemisphere");
   app->SetParameterDescription(oss.str(),"The transverse mercator projections are defined by their zone number as well as the hemisphere. Activate this parameter if your image is in the northern hemisphere.");
 
+
   // lambert2
   oss.str("");
   oss << key<<".lambert2";
-- 
GitLab