[GRASS-dev] [bug #5098] (grass) gis.m; tcltk error when zooming to map with name which exists in more than one mapset

Glynn Clements glynn at gclements.plus.com
Fri Sep 15 03:03:16 EDT 2006


Huidae Cho 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?

No. Those are only used for commands which need to be run in an xterm
because they interact with the user via a terminal. They aren't used
for modules which can operate without user interaction (i.e. the
majority of GRASS modules).

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list