Monteverdi crashes on wrong DEM directory
Mantis Issue 352, reported by jmalik, assigned to jguinet, created: 2011-06-21
There is an uncaught exception in Monteverdi when DEM dir is set to a wrong directory.
Can be reproduced with (at least) the viewer and the connected component segmentation module. All other modules with DEM support should be checked.
1308734396 - jguinetthe exception is now handled in SetDEMDirectory method from SensorModelAdapter class. If a wrong DEM directory is to be set otbWarning is generated and boolean value UseDEM is set to false.
rev 10952
1308760014 - christopPlease don't use the revision number (which is local and different for each machine), use the hash. Better yet, put directly the link to hg.orfeo-toolbox.org. Like: http://hg.orfeo-toolbox.org/OTB/rev/2fd2ddd84998
Concerning this particular bug: I think it's a bad idea to catch the exception here. The whole purpose of the exception it to get to the application that will know what to do with it. Now, you silently ignore the fact that a DEM was requested.
This try/catch should be in Monteverdi.
1308845491 - jguinetA SensorModelAdapter will be instantiated to test DEM choosen via Directory chooser
if DEM directory is ok it will be set to vectordataprojectionfilter otherwise, otbMsgReporter will send a message and no DEM will be set to vectordatapr