#3000 closed defect (fixed)
i.gensig overwrites signature file without warning
Reported by: | marisn | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.2.0 |
Component: | Imagery | Version: | svn-trunk |
Keywords: | i.gensig | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
Although it is not a huge issue, overwriting output files without asking for confirmation goes against the spirit of GRASS GIS.
An --overwrite flag should be implemented for i.gensig for signature file.
Change History (4)
comment:1 by , 9 years ago
Milestone: | 7.1.0 → 7.2.0 |
---|
comment:2 by , 9 years ago
comment:4 by , 9 years ago
Sorry, that change is wrong as it will check for file presence only if OVERWRITE is set and fail to do so if it is unset (usual case). I reverted it in r68432
I implemented a new function to find signature files in r68433 to not change I_find_subgroup_file function within 7.x lifetime. Good question if all hardcoded directory separators in lib/imagery should not be replaced with HOST_DIRSEP as it is done in r68433 to match how G_file_name works. Needs testing on Windows.
As of r68434 all (I hope) signatures generating modules perform check to not overwrite signature file.
Milestone renamed