Commit 1e49a57c authored by Julien Michel's avatar Julien Michel

Resolve "Orthorectification regression in v6.6"

parent dccfd1e8
......@@ -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)
......
......@@ -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());
}
......
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