[GRASS-dev] gis.m crashes on zoom to map existing in more than one mapset

Glynn Clements glynn at gclements.plus.com
Fri Jan 5 08:49:52 EST 2007


Moritz Lennert wrote:

> I don't know if this is just another manifestation of the changes in 
> g.region, but gis.m crashes when I try to zoom to a map which exists in 
> more than one mapset of the current location.
> 
> To reproduce in spearfish, in mapset user1:
> 
> 1) g.copy rast=bugsites at PERMANENT,bugsites (or any other raster or 
> vector map)
> 
> 2) display bugsites
> 
> 3) zoom to selected map
> 
> The command used in mapcanvas.tcl is g.region -ugp rast=bugsites. This 
> gives:
> 
> GRASS 6.3.cvs (spearfish60):~ > g.region -ugp rast=bugsites
> WARNING: 'cell/bugsites' was found in more mapsets (also found in user1).

This is a good example of why the solution to the recent
g.region/gis.m issues is to make gis.m handle warnings correctly
rather than trying to eliminate specific warnings.

Even the simplest program can potentially result in warnings (or
similar diagnostics) being generated by libgis (or other libraries) in
some cases. And for third-party libraries (of which GDAL may use a
significant number), there is nothing which can be done about it.

Tcl's behaviour of treating anything written to stderr as an error is
a nuisance, but one which has to be dealt with so long as we continue
to use Tcl.

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




More information about the grass-dev mailing list