Setting the dataset cache directory to an non empty cache dir does not reload existing datasets inside
Mantis Issue 743, reported by mgrizonnet, assigned to msavinaud, created: 2013-07-17
It is difficult to explain so I try to describe step by step this issue:
- Imagine that all of your mvd2 dataset are in a directory on an external drive
- You start mvd2 and forget to plug your hard drive, a popoup which propose to modify the cache directory which will
- you plug in your hard drive and browse to set the cache directory
- you set the cache directory to the previous cache directory on your HD hoping that it will allow you to reload existing datasets
- But mvd2 open with no existing dataset in the tree browser
The worst part which seem to be side effect is that the application crashes (std::exception) if you want to import a new dataset in the application.
I think it could be solve by calling ListAvailableDatasets and/or QueryDatasetModels on the new cache directory to check if there is no existing dataset inside
1379668895 - salbertThe user must choose the '.../parent' directory where 'mvd2' is contained instead of choosing '.../parent/mvd2'.
1384512259 - mickaelI think it is a problem of message return by application. We must be more clear about this point.
1397561346 - mickaelStill reproduced with the pleiades days version but not for the bug of import. One solution could be to add some checking mechanism when the user set the directory where we will create mvd2. For example,
- if the user set a directory which is the parent of a already existing mvd2 directory we should indicate that we will re-use this existing directory and the existing dataset
- if the user set an existing mvd2 directory we should indicate that the directory will be created inside of an existing mvd2 directory which is not the good way to retrieve existing dataset
1397578891 - mickaelTwo qWarning have been added to handle the two previous cases. http://hg.orfeo-toolbox.org/Monteverdi2/rev/b0c442b6f832
*1397822204 - mic