Skip to content
Snippets Groups Projects
Commit 03ed384b authored by Mickael Savinaud's avatar Mickael Savinaud
Browse files

[BUG] resolve problem with computation of UTM hemisphere when we initialize app UTM parameters

parent 78933678
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment