[GRASS-dev] Re: g.proj and datum information (and gis.m)

Michael Barton michael.barton at asu.edu
Sat Oct 21 00:06:18 EDT 2006

You simply can't have an  interactive xterm from inside a TclTk GUI. The
info gets returned to stderr, which TclTk treats as an error, or to stdout,
which TclTk treats (correctly) as information output from the command. There
is no way to communicate back from a simply text output window because it is
not an interactive xterm.

To use this (and other such commands) from inside a GUI, you need to be able
to turn off this required interactive part and let the GUI handle it. If the
projection parameters are not specified correctly, it can return an error
message and fail, but you can't ask a user to respond via a (non-existent)
terminal. The --q flag needs to work correctly here.

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

> From: Paul Kelly <paul-grass at stjohnspoint.co.uk>
> Date: Sat, 21 Oct 2006 02:03:18 +0100 (BST)
> To: Moritz Lennert <mlennert at club.worldonline.be>
> Cc: Grass Developers List <grass-dev at grass.itc.it>, Michael Barton
> <michael.barton at asu.edu>
> Subject: Re: g.proj and datum information (and gis.m)
> I haven't used gis.m, but why can the output window not accept user input?
> I think it would be cool if GRASS could work a bit like AutoCAD and Matlab
> which, while mostly GUI-oriented, still have a command line available. IIRC
> the way Radim integrated GRASS with QGIS on Windows with the GRASS shell
> inside QGIS worked something like this?

More information about the grass-dev mailing list