Output image param not set when loading XML params
Mantis Issue 1114, reported by salbert, assigned to salbert, created: 2015-11-26
Output image parameter not set when loading process XML parameters of ExtractROI in Monteverdi.
Maybe an OTB issue?
Maybe due to default initialization of output image/filename param using current directory.
1450189982 - gpaseroIssue not reproduced on OTB with otbgui_ExtractROI launcher. The output image parameter is correctly loaded from the XML.
1458750239 - gpaseroTo be checked
1475768446 - salbertBug comes from this line: https://git.orfeo-toolbox.org/otb.git/blob/refs/heads/bugfix-1114:/Modules/Wrappers/ApplicationEngine/src/otbWrapperInputProcessXMLParameter.cxx#l276
In Monteverdi output image filenames are pre-initialized by the application. So the ::HasUserValue() predicate returns true and the XML filename value is not set correctly.
Moreover, if the user opens an OTB-application and type/select an output filename, the output image filename will not be loaded correctly.
IMO, the if( !param->HasUserValue() ) statement should be removed.
1475840918 - poughov+1 let's merge this
1476095487 - rashadkmmerged