diff --git a/Applications/Projections/otbSuperimpose.cxx b/Applications/Projections/otbSuperimpose.cxx index 304fb161a8545c736404f15b330bec0f7ff24a11..7770d565a6d31ac222a1dedc44a608802883da3c 100644 --- a/Applications/Projections/otbSuperimpose.cxx +++ b/Applications/Projections/otbSuperimpose.cxx @@ -170,7 +170,7 @@ private: bool isRefPHR = false; bool isMovingPHR = false; - otb::PleiadesImageMetadataInterface::Pointer phrIMI = + otb::PleiadesImageMetadataInterface::Pointer phrIMI = otb::PleiadesImageMetadataInterface::New(); phrIMI->SetMetaDataDictionary(refImage->GetMetaDataDictionary()); isRefPHR = phrIMI->CanRead(); @@ -197,13 +197,13 @@ private: std::string panProcessing = kwlPan.GetMetadataByKey("support_data.processing_level"); std::string xsProcessing = kwlXS.GetMetadataByKey("support_data.processing_level"); - if (panProcessing.compare("SENSOR") == 0 && + if (panProcessing.compare("SENSOR") == 0 && xsProcessing.compare("SENSOR") == 0) { SetParameterInt("mode",Mode_PHR); otbAppLogINFO("Enable the PHR mode"); } - } + } } }