diff --git a/Modules/Applications/AppSegmentation/app/otbLargeScaleMeanShift.cxx b/Modules/Applications/AppSegmentation/app/otbLargeScaleMeanShift.cxx index 7a72e7f9a154bd3c7f3aaaceb09e08a618c079cb..9d11b930460ff5dd94f2503aa0234bc62161f842 100644 --- a/Modules/Applications/AppSegmentation/app/otbLargeScaleMeanShift.cxx +++ b/Modules/Applications/AppSegmentation/app/otbLargeScaleMeanShift.cxx @@ -209,7 +209,7 @@ private: } DisableParameter("mode.raster.out"); - if( IsParameterEnabled( "cleanup" ) ) + if( GetParameterInt( "cleanup" ) ) { otbAppLogINFO( <<"Final clean-up ..." ); for (unsigned int i=0 ; i<tmpFilenames.size() ; ++i) diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperMapProjectionParametersHandler.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperMapProjectionParametersHandler.cxx index a4d4557c6d58dad4cdd47bec748822eac41d2ffd..69cc498e1c7a81d0b45cdb266301b6c410ab0360 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperMapProjectionParametersHandler.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperMapProjectionParametersHandler.cxx @@ -142,7 +142,7 @@ const std::string MapProjectionParametersHandler::GetProjectionRefFromChoice(con // Set the hem char hem = 'N'; - if (!app->IsParameterEnabled(hemKey.str())) + if (!app->GetParameterInt(hemKey.str())) hem = 'S'; utmProjection->SetHemisphere(hem); @@ -241,15 +241,7 @@ void MapProjectionParametersHandler::InitializeUTMParameters(Application::Pointe genericRSEstimator->GetOutputOrigin()[1]); // Update the UTM Gui fields app->SetParameterInt(zoneKey.str(), zone); - if (genericRSEstimator->GetOutputOrigin()[1] > 0.) - { - app->EnableParameter(hemKey.str()); - } - else - { - app->DisableParameter(hemKey.str()); - } - + app->SetParameterInt(hemKey.str(),genericRSEstimator->GetOutputOrigin()[1] > 0.); app->AutomaticValueOn(zoneKey.str()); app->AutomaticValueOn(hemKey.str()); }