[GRASS-dev] [bug #5098] (grass) gis.m;
tcltk error when zooming to map with name which exists in more than
one mapset
Huidae Cho
grass4u at gmail.com
Fri Sep 15 00:28:49 EDT 2006
On Mon, Sep 04, 2006 at 06:41:59PM +0100, Glynn Clements wrote:
>
> Request Tracker wrote:
>
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=5098
> > -------------------------------------------------------------------------
> >
> > Subject: gis.m; tcltk error when zooming to map with name which exists in more than one mapset
> >
> > Platform: GNU/Linux/x86
> > grass obtained from: CVS
> > grass binary for platform: Compiled from Sources
> > GRASS Version: cvs_head_20060904
> >
> > When there are two maps with the same name in more than one of the
> > accessible mapsets, then gis.m throws below tcltk error when I try to
> > "zoom to selected map". To reproduce in spearfish, just copy any map
> > from the PERMANENT mapset to the user1 mapset using the same name and
> > then display it and zoom to it. If I enter @mapsetname (i.e. @user1)
> > after the map name zooming to the map works.
> >
> > It is probably just a question of catching the WARNING message and
> > ignoring it, or of adding the @mapsetname automatically (default to
> > current mapset if not set otherwise).
>
> Whenever any Tcl/Tk code runs a GRASS command, it needs to use
> "2>@stdout". Tcl treats it as an error if anything is written to
> stderr.
>
> Genuine errors will still be detected by a non-zero exit code.
>
Are all GRASS commands called by grass-xterm-wrapper and grass-run.sh?
If so, can we just move this redirection to grass-xterm-wrapper so that
Windows users are happy? $mingw test for separate redirection is ugly.
Huidae
More information about the grass-dev
mailing list