FW: [GRASS5] form mode for d.what.vect

Moritz Lennart seemed to have found a way to make the form mode work correctly for Mac’s (see below). Has anyone had a chance to test this? Is this something that works across all platforms or is it problematic?

Michael


C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

------ Forwarded Message
From: Michael Barton Michael.Barton@asu.edu
Date: Tue, 23 Nov 2004 10:40:53 -0700
To: mlennert@club.worldonline.be
Cc: blazek@itc.it
Subject: Re: [GRASS5] d.m - d.what.vect

Will this work for everyone? If so, can we make it the standard?

Michael

On 11/23/04 10:05 AM, “Moritz Lennert” mlennert@club.worldonline.be wrote:

On Tue, November 23, 2004 17:41, Michael Barton said:

Thanks Moritz.

I really wish someone would find a way to fix this. I’d like to use the form
mode on my Mac. I promise to change the toolbar to form mode as soon as it
gets fixed.

As you can see in the thread, I fixed it for me by adding

sleep(1);

to the main() function of the main.c file of d.what.vect:

[…]

int main(int argc, char **argv)
{
struct Flag *once, *terse, *txt, *topo_flag, *flash, *edit_flag;
struct Option *opt1;
struct GModule *module;
char *mapset, *openvect();
char temp[128], *str;
int i, j, level, width = 0, mwidth = 0;

sleep(1);

/* Initialize the GIS calls */
G_gisinit (argv[0]) ;

[…]

This is just a hack, but it works for me !

Moritz

Michael

On 11/23/04 9:21 AM, “Moritz Lennert” mlennert@club.worldonline.be wrote:

On Tue, November 23, 2004 15:47, Radim Blazek said:

Why d.what.vect is run with -x flag in d.m?

http://freegis.org/cgi-bin/viewcvs.cgi/grass51/display/d.m/vector.tcl.diff?
r1
=1.27&r2=1.28

Because some of us have problems with d.what.vect and the form library
making
it unusable in GUI mode (unless you add a sleep(1) in main.c:

http://grass.itc.it/pipermail/grass5/2004-September/015393.html
and
http://grass.itc.it/pipermail/grass5/2004-October/015746.html

Moritz


Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

------ End of Forwarded Message

it didn't work for me. same error as before.

florian

On 23 Dec 2004, at 04:12, Michael Barton wrote:

Moritz Lennart seemed to have found a way to make the form mode work correctly for Mac’s (see below). Has anyone had a chance to test this? Is this something that works across all platforms or is it problematic?

Michael
____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

------ Forwarded Message
From: Michael Barton <Michael.Barton@asu.edu>
Date: Tue, 23 Nov 2004 10:40:53 -0700
To: <mlennert@club.worldonline.be>
Cc: <blazek@itc.it>
Subject: Re: [GRASS5] d.m - d.what.vect

Will this work for everyone? If so, can we make it the standard?

Michael

On 11/23/04 10:05 AM, "Moritz Lennert" <mlennert@club.worldonline.be> wrote:

> On Tue, November 23, 2004 17:41, Michael Barton said:
>> Thanks Moritz.
>>
>> I really wish someone would find a way to fix this. I'd like to use the form
>> mode on my Mac. I promise to change the toolbar to form mode as soon as it
>> gets fixed.
>
> As you can see in the thread, I fixed it for me by adding
>
> sleep(1);
>
> to the main() function of the main.c file of d.what.vect:
>
> [...]
>
> int main(int argc, char **argv)
> {
> struct Flag *once, *terse, *txt, *topo_flag, *flash, *edit_flag;
> struct Option *opt1;
> struct GModule *module;
> char *mapset, *openvect();
> char temp[128], *str;
> int i, j, level, width = 0, mwidth = 0;
>
> sleep(1);
>
> /* Initialize the GIS calls */
> G_gisinit (argv[0]) ;
>
> [...]
>
> This is just a hack, but it works for me !
>
> Moritz
>
>>
>> Michael
>>
>> On 11/23/04 9:21 AM, "Moritz Lennert" <mlennert@club.worldonline.be> wrote:
>>
>>> On Tue, November 23, 2004 15:47, Radim Blazek said:
>>>> Why d.what.vect is run with -x flag in d.m?
>>>>
>>>> http://freegis.org/cgi-bin/viewcvs.cgi/grass51/display/d.m/vector.tcl.diff?
>>>> r1
>>>> =1.27&r2=1.28
>>>>
>>>
>>> Because some of us have problems with d.what.vect and the form library
>>> making
>>> it unusable in GUI mode (unless you add a sleep(1) in main.c:
>>>
>>> http://grass.itc.it/pipermail/grass5/2004-September/015393.html
>>> and
>>> http://grass.itc.it/pipermail/grass5/2004-October/015746.html
>>>
>>> Moritz
>>>
>>
>> ______________________________
>> Michael Barton, Professor of Anthropology
>> School of Human, Evolution and Social Change
>> Arizona State University
>> Tempe, AZ 85287-2402
>> USA
>>
>> voice: 480-965-6262; fax: 480-965-7671
>> www: http://www.public.asu.edu/~cmbarton
>>
>

______________________________
Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

------ End of Forwarded Message

Florian,

Thanks for checking. Perhaps it's on the right track, but isn't quite the
solution.

Michael

On 12/23/04 1:09 AM, "Florian Goessmann" <florian@wallweg39.de> wrote:

it didn't work for me. same error as before.

florian

On 23 Dec 2004, at 04:12, Michael Barton wrote:

Moritz Lennart seemed to have found a way to make the form mode work
correctly for Mac¹s (see below). Has anyone had a chance to test this?
Is this something that works across all platforms or is it
problematic?

Michael
____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

------ Forwarded Message
From: Michael Barton <Michael.Barton@asu.edu>
Date: Tue, 23 Nov 2004 10:40:53 -0700
To: <mlennert@club.worldonline.be>
Cc: <blazek@itc.it>
Subject: Re: [GRASS5] d.m - d.what.vect

Will this work for everyone? If so, can we make it the standard?

Michael

On 11/23/04 10:05 AM, "Moritz Lennert" <mlennert@club.worldonline.be>
wrote:

On Tue, November 23, 2004 17:41, Michael Barton said:

Thanks Moritz.

I really wish someone would find a way to fix this. I'd like to

use the form

mode on my Mac. I promise to change the toolbar to form mode as

soon as it

gets fixed.

As you can see in the thread, I fixed it for me by adding

sleep(1);

to the main() function of the main.c file of d.what.vect:

[...]

int main(int argc, char **argv)
{
struct Flag *once, *terse, *txt, *topo_flag, *flash, *edit_flag;
struct Option *opt1;
struct GModule *module;
char *mapset, *openvect();
char temp[128], *str;
int i, j, level, width = 0, mwidth = 0;

sleep(1);

/* Initialize the GIS calls */
G_gisinit (argv[0]) ;

[...]

This is just a hack, but it works for me !

Moritz

Michael

On 11/23/04 9:21 AM, "Moritz Lennert"

<mlennert@club.worldonline.be> wrote:

On Tue, November 23, 2004 15:47, Radim Blazek said:

Why d.what.vect is run with -x flag in d.m?

FreeGIS.org
vector.tcl.diff?

r1
=1.27&r2=1.28

Because some of us have problems with d.what.vect and the form

library

making
it unusable in GUI mode (unless you add a sleep(1) in main.c:

http://grass.itc.it/pipermail/grass5/2004-September/015393.html
and
http://grass.itc.it/pipermail/grass5/2004-October/015746.html

Moritz

______________________________
Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

______________________________
Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

------ End of Forwarded Message

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

michael, moritz

i did some more tests and i seems to me that moritz change works depending on your local tcltk instalation.
moritz: which way did you install tcltk on your machine (tcltk aqua, tcltk non-aqua, lorenzos grasslibs)?

regards
florian

PS: merry christmas!

On 23 Dec 2004, at 17:30, Michael Barton wrote:

Florian,

Thanks for checking. Perhaps it's on the right track, but isn't quite the
solution.

Michael

On 12/23/04 1:09 AM, "Florian Goessmann" <florian@wallweg39.de> wrote:

it didn't work for me. same error as before.

florian

On 23 Dec 2004, at 04:12, Michael Barton wrote:

Moritz Lennart seemed to have found a way to make the form mode work
correctly for Mac’s (see below). Has anyone had a chance to test this?
Is this something that works across all platforms or is it
problematic?

Michael
____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

------ Forwarded Message
From: Michael Barton <Michael.Barton@asu.edu>
Date: Tue, 23 Nov 2004 10:40:53 -0700
To: <mlennert@club.worldonline.be>
Cc: <blazek@itc.it>
Subject: Re: [GRASS5] d.m - d.what.vect

Will this work for everyone? If so, can we make it the standard?

Michael

On 11/23/04 10:05 AM, "Moritz Lennert" <mlennert@club.worldonline.be>
wrote:

On Tue, November 23, 2004 17:41, Michael Barton said:

Thanks Moritz.

I really wish someone would find a way to fix this. I'd like to

use the form

mode on my Mac. I promise to change the toolbar to form mode as

soon as it

gets fixed.

As you can see in the thread, I fixed it for me by adding

sleep(1);

to the main() function of the main.c file of d.what.vect:

[...]

int main(int argc, char **argv)
{
struct Flag *once, *terse, *txt, *topo_flag, *flash, *edit_flag;
struct Option *opt1;
struct GModule *module;
char *mapset, *openvect();
char temp[128], *str;
int i, j, level, width = 0, mwidth = 0;

sleep(1);

/* Initialize the GIS calls */
G_gisinit (argv[0]) ;

[...]

This is just a hack, but it works for me !

Moritz

Michael

On 11/23/04 9:21 AM, "Moritz Lennert"

<mlennert@club.worldonline.be> wrote:

On Tue, November 23, 2004 15:47, Radim Blazek said:

Why d.what.vect is run with -x flag in d.m?

http://freegis.org/cgi-bin/viewcvs.cgi/grass51/display/d.m/
vector.tcl.diff?

r1
=1.27&r2=1.28

Because some of us have problems with d.what.vect and the form

library

making
it unusable in GUI mode (unless you add a sleep(1) in main.c:

http://grass.itc.it/pipermail/grass5/2004-September/015393.html
and
http://grass.itc.it/pipermail/grass5/2004-October/015746.html

Moritz

______________________________
Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

______________________________
Michael Barton, Professor of Anthropology
School of Human, Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

------ End of Forwarded Message

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

On Thu, December 23, 2004 19:50, Florian Goessmann said:

michael, moritz

i did some more tests and i seems to me that moritz change works
depending on your local tcltk instalation.
moritz: which way did you install tcltk on your machine (tcltk aqua,
tcltk non-aqua, lorenzos grasslibs)?

There seems to have been a misunderstanding. I run GRASS on Debian
testing/unstable. I have no experience with Mac.
I use the tcl/tk 8.3 Debian binary packages.

Moritz

Oh. But maybe your fix will work on Macs too. I guess we'll have to test
more.

Michael

On 1/3/05 2:45 AM, "Moritz Lennert" <mlennert@club.worldonline.be> wrote:

On Thu, December 23, 2004 19:50, Florian Goessmann said:

michael, moritz

i did some more tests and i seems to me that moritz change works
depending on your local tcltk instalation.
moritz: which way did you install tcltk on your machine (tcltk aqua,
tcltk non-aqua, lorenzos grasslibs)?

There seems to have been a misunderstanding. I run GRASS on Debian
testing/unstable. I have no experience with Mac.
I use the tcl/tk 8.3 Debian binary packages.

Moritz

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>