[GRASS-dev] [bug #4983] (grass) r.blend: the output name check is
to strict
Glynn Clements
glynn at gclements.plus.com
Tue Aug 8 13:18:43 EDT 2006
Maciek Sieczka via RT wrote:
> Moreover, r.blend ignores --ovewrite flag:
>
> $ g.list rast | grep map1_blend
>
> map1_blend.b map1_blend.g
> map1_blend.r
>
> $ r.blend --o first=map1 second=map2 output=map1_blend
> Raster map <map1_blend.r> already exists.
>
> *I know* it *exists* - that's why I'm using --o switch; but it's ignored for
> some reason.
r.blend performs its own check for the output maps:
for MAP in r g b ; do
g.findfile elem=cell file=${GIS_OPT_OUTPUT}.$MAP > /dev/null
if [ $? -eq 0 ] ; then
echo "Raster map <${GIS_OPT_OUTPUT}.$MAP> already exists." 1>&2
exit 1
fi
done
I've committed fixes for both issues (checking the base name, ignoring
--overwrite).
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list