diff --git a/Code/ApplicationEngine/otbWrapperListViewParameter.cxx b/Code/ApplicationEngine/otbWrapperListViewParameter.cxx index 5d72e0ab273b5d628148fd9009197c27fb532d80..6742139fe636d288d77f0c2f8d8203c87ab666e4 100644 --- a/Code/ApplicationEngine/otbWrapperListViewParameter.cxx +++ b/Code/ApplicationEngine/otbWrapperListViewParameter.cxx @@ -151,11 +151,12 @@ ListViewParameter::SetSelectedItemsByNames() // If not found if( j==names.size() ) { + itk::OStringStream oss; for( j=0; j<names.size(); j++) { - std::cout<<names[j]<<std::endl; + oss<<names[j]<<", "; } - itkExceptionMacro("Value "<<selectedName<<" not found in the ch888oices possibilities..."); + itkExceptionMacro("Value "<<selectedName<<" not found in the choices possibilities"<<oss.str()<<"."); } } this->SetSelectedItems(selectedItems); @@ -172,6 +173,7 @@ ListViewParameter::SetSelectedItemsByKeys() { const std::string selectedKey = m_SelectedKeys[i]; unsigned int j(0); + itk::OStringStream oss; for( ; j<keys.size(); j++) { if( keys[j] == selectedKey ) @@ -186,8 +188,9 @@ ListViewParameter::SetSelectedItemsByKeys() for( j=0; j<keys.size(); j++) { std::cout<<keys[j]<<std::endl; + oss<<keys[j]<<", "; } - itkExceptionMacro("Value "<<selectedKey<<" not found in the choices possibilities...") + itkExceptionMacro("Value "<<selectedKey<<" not found in the choices possibilities"<<oss.str()<<"."); } } this->SetSelectedItems(selectedItems); diff --git a/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx b/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx index 2f025c2bf51151bbbdf9689df765594499cb5bc1..ffe52eb2888d0c2949e4fc9751b36de1b7aa105c 100644 --- a/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx +++ b/Code/ApplicationEngine/otbWrapperOutputImageParameter.cxx @@ -113,6 +113,7 @@ OutputImageParameter::Write( ) { m_FloatWriter->SetFileName( this->GetFileName() ); m_FloatWriter->SetInput(this->GetImage()); + m_FloatWriter->Modified(); m_FloatWriter->Update(); } break; diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index b27a7c7caef9391a976ad07e52a9e4794c09e402..9338ce6c3690fff68e000c24a13f83398c9b77f0 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -609,17 +609,8 @@ CommandLineLauncher::DisplayParameterHelp( const Parameter::Pointer & param, con } else if( type == ParameterType_ListView ) { - oss<<"\t Type: List of int "; - std::vector<std::string> names = m_Application->GetChoiceNames(paramKey); - for( unsigned int j=0; j<names.size(); j++ ) - { - oss << names[j]; - if( j<= names.size()-1 ) - { - oss << ", "; - } - } - oss << std::endl; + // We don't have access to the possible values... + oss<<"\t Type: List of String" << std::endl; } else {