Thu, Feb 13 2003
00:00:09
|
|
Request created by guest
|
|
Subject: d.mapgraph: survive redraw?
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0
It would be nice if someone could figure out how to get d.mapgraph to survive
a redraw or zoom.
Currently the call to D_add_to_list(G_recreate_command()) is commented out, as
the program can take input from stdin, which doesn't get saved to the print list.
maybe
if(opt1->answer != NULL) {
D_add_to_list(G_recreate_command()) ;
}
instead, i.e. add to the print list only if input comes from an actual disk file..
better than nothing anyway.
any ideas? prepend the stdin input and some pipes to the d.mapgraph command line
string?
Hamish
|
|
Thu, Feb 13 2003
11:28:42
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<15947.23359.405742.377167@cerise.nosuchdomain.co.uk>
|
Date |
Thu, 13 Feb 2003 08:45:51 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #1634] (grass) d.mapgraph: survive redraw?
|
In-Reply-To |
<20030212230010.0B86D13B2A@lists.intevation.de>
|
References |
<20030212230010.0B86D13B2A@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 12) "Portable Code" XEmacs Lucid
|
X-Spam-Status |
No, hits=-3.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01 version=2.43
|
X-Spam-Level |
|
Request Tracker wrote:
> It would be nice if someone could figure out how to get d.mapgraph to
> survive a redraw or zoom.
>
> Currently the call to D_add_to_list(G_recreate_command()) is commented
> out, as the program can take input from stdin, which doesn't get saved
> to the print list.
> instead, i.e. add to the print list only if input comes from an actual
> disk file.. better than nothing anyway.
>
> any ideas? prepend the stdin input and some pipes to the d.mapgraph
> command line string?
d.text has the same problem; it solves it by redirecting input from
the temp file to which stdin is copied:
max_buff = G_malloc(strlen(wind_file_name)+strlen(G_recreate_command())+4);
sprintf(max_buff, "%s < %s", G_recreate_command(), wind_file_name);
D_add_to_list(max_buff);
G_free(max_buff);
However, d.mapgraph processes stdin directly, so you would have to
add code to store the data read from stdin (although you would have to
do this however you solved the problem).
Ultimately, the D_add_to_list() concept is fundamentally flawed. There
will always be cases which don't work.
--
Glynn Clements <glynn.clements@virgin.net>
|
|
Tue, Jun 27 2006
05:36:38
|
|
User changed to hamish_nospam@yahoo.com by hbowman
|
|
Tue, Jun 27 2006
05:37:56
|
|
Status changed to resolved by hbowman
|
|
Tue, Jun 27 2006
05:37:56
|
|
Comments added by hbowman
|
|
d.mapgraph is replaced by d.graph.
d.graph saves to display history if input file is given.
closing bug.
Hamish
|
|