[GRASS-dev] Re: georectifier fixes

Michael Barton michael.barton at asu.edu
Thu Nov 2 01:03:12 EST 2006


> From: Hamish <hamish_nospam at yahoo.com>
> Date: Thu, 2 Nov 2006 15:41:55 +1300
> To: Otto Dassau <otto.dassau at gmx.de>
> Cc: <michael.barton at asu.edu>, <grass-dev at grass.itc.it>
> Subject: Re: georectifier fixes
> Otto Dassau wrote:
>>> It is odd about the i.group problem. When I click the creat/edit
>>> group button, it switches to the xy location/mapset and runs i.group
>>> on my computer. What happens on yours?
>> nothing, not even an error. I have a debian testing and compile GRASS
>> with --with-tcltk-includes=/usr/include/tcl8.4.
>> I don't know why it doesn't work. Maybe we should wait for someone
>> else with debian testing who can try. Maybe I do something wrong.
> [debian/stable (sarge)]
> the problem I got: gis.m file->georectify  "2. Create edit group"
> switches to source location/mapset, but then switches back to original
> mapset right away, so i.group runs in the target mapset instead of
> source mapset. if you had already created a group in the source mapset
> you can continue, but otherwise you're stuck.

I "fixed" this by having i.group run modally. The georectifier script should
not continue until you close i.group

> If I modify the source, adding "after 5000" to have the Tcl sleep for
> 5sec after running i.group, I can get i.group to act in the source
> mapset for a fleeting moment, but if I then cancel & reclick the folder
> icon I then see the available groups in the originial (target) mapset.

This won't work, as you noted.

> That is what happens with 6.2.0.  With the latest 6.3, clicking the "2."
> button does nothing (although mapset changes fly by in the output
> window). 

i.group is running as a modal command under x11 on my Mac. Obviously it is
not running modally on your Debian system. Maybe Glynn or someone can offer
a clue.

I am running it in TclTk as ...

Set cmd "i.group"
Catch {exec -- $cmd}

[I use catch because closing the i.group dialog generates a non-meaningful,
non-fatal, but annoying TclTk error message]


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