[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
Mon Sep 4 13:41:59 EDT 2006


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.

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




More information about the grass-dev mailing list