[GRASS-dev] Re: [GRASS-CVS] michael: grass6/gui/tcltk/gis.m mapcanvas.tcl, 1.52, 1.53

Michael Barton michael.barton at asu.edu
Wed Nov 29 01:50:21 EST 2006


On 11/28/06 10:20 PM, "Hamish" <hamish_nospam at yahoo.com> wrote:

> 
> I never get there as catch always returns 0 for me, even when g.region
> failed.

This means that catch is not returning an error when g.region fails.

> 
> If I move "puts $input" before if {! $retval } above, that prints
> "file8" or "file9", presumably the name of the $input stream that gets()
> works on.
> 

Yes, you are correct. Again, this suggests that g.region does not fail.
Maybe the problem is that your failure is not the same as my failure. To
simulate failure, I renamed g.region to g.region_x. See if this does fail on
your system. If so, then we need to figure out where the gdal problem causes
failure. There is another g.region statement in the code. So perhaps it is
there.

Michael

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list