diff --git a/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx b/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx index 23343511f472e93147bdd5e83255828d5580c456..46e49b1681906421037c3ff6c7fb3dbc3a1efa09 100644 --- a/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx +++ b/Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx @@ -217,6 +217,7 @@ void MapProjectionParametersHandler::InitializeUTMParameters(Application::Pointe // Compute the Origin lat/long coordinate typedef otb::ImageToGenericRSOutputParameters<FloatVectorImageType> OutputParametersEstimatorType; OutputParametersEstimatorType::Pointer genericRSEstimator = OutputParametersEstimatorType::New(); + genericRSEstimator->SetInput(app->GetParameterImage(imageKey)); genericRSEstimator->SetOutputProjectionRef(otb::GeoInformationConversion::ToWKT(4326)); genericRSEstimator->Compute(); @@ -225,7 +226,7 @@ void MapProjectionParametersHandler::InitializeUTMParameters(Application::Pointe genericRSEstimator->GetOutputOrigin()[1]); // Update the UTM Gui fields app->SetParameterInt(zoneKey.str(), zone); - if(genericRSEstimator->GetOutputOrigin()[0] > 0.) + if(genericRSEstimator->GetOutputOrigin()[1] > 0.) { app->EnableParameter(hemKey.str()); }