[GRASS-dev] [bug #4381] (grass) export location for r.out.*
differs
Hamish
hamish_nospam at yahoo.com
Fri May 5 08:44:20 EDT 2006
> Secondly, some export modules force (well, at least r.out.tiff does)
> the file extension, and some leave it up to the user to set it.
A good solution is to check to see if the name already has the extension
on it before "forcing" one on. (so you don't get .tif.tif)
shell:
FILE="`basename $output .tif`.tif"
tcl:
if { [string compare [file extension $fname] ".tif"] != 0 } then {
append fname ".tif"
}
C:
<string.h> :)
Hamish
More information about the grass-dev
mailing list