Details Ticket 3592


Comment | Reply | Take | Resolve


Serial Number 3592
Subject d.vect.thematic: cannot export legend with d.out.png
Area wish6
Queue grass
Requestors mlennert@club.worldonline.be
Owner none
Status open
Last User Contact Mon Sep 19 10:01:09 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon Sep 19 10:01:09 2005 (3 yr ago)
Created Tue Aug 30 15:28:24 2005 (3 yr ago)

Transaction History Ticket 3592


Tue, Aug 30 2005 15:28:24    Request created by guest  
Subject: d.vect.thematic: cannot export legend with d.out.png

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: cvs20050830

When creating a legend with d.vect.thematic, I cannot export this to a file with
d.out.png. I have to use a screenshot to do so.

It would be nice to be able to export the legend directly, ideally into a vector
file, so that I could then modify it easily in a graphics program.

Maybe there could be an option to export the legend with ps.map instead of displaying
it with d.graph...

Moritz
Fri, Sep 16 2005 15:41:14    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Sat, 17 Sep 2005 01:40:58 +1200
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export legend with d.out.png
Message-Id <20050917014058.06f2c59c.hamish_nospam@yahoo.com>
In-Reply-To <20050830132824.4E7641005A3@lists.intevation.de>
References <20050830132824.4E7641005A3@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3592
> ---------------------------------------------------------------------
> 
> Subject: d.vect.thematic: cannot export legend with d.out.png
> 
> Platform: GNU/Linux/i386
> grass obtained from: CVS
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs20050830
> 
> When creating a legend with d.vect.thematic, I cannot export this to a
> file with d.out.png. I have to use a screenshot to do so.
> 
> It would be nice to be able to export the legend directly, ideally
> into a vector file, so that I could then modify it easily in a
> graphics program.
> 
> Maybe there could be an option to export the legend with ps.map
> instead of displaying it with d.graph...


To survive d.redraw et al. d.graph input needs to be added to the
command history list via a temporary file. d.text does this already.

Then it will survive the trip through d.out.png.



Hamish


Fri, Sep 16 2005 17:52:53    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Fri, 16 Sep 2005 08:51:12 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export legend with d.out.png
In-reply-to <20050917014058.06f2c59c.hamish_nospam@yahoo.com>
To Hamish <hamish_nospam@yahoo.com>, Paolo Cavallini via RT <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Message-id <BF503800.1A7A1%michael.barton@asu.edu>
MIME-version 1.0
Content-type text/plain; charset=US-ASCII
Content-transfer-encoding 7bit
User-Agent Microsoft-Entourage/11.1.0.040913
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
How can d.graph input be added to the command history? Is this something
that needs to be added to the d.graph C module?

Michael
______________________________
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


> From: Hamish <hamish_nospam@yahoo.com>
> Date: Sat, 17 Sep 2005 01:40:58 +1200
> To: Request Tracker <grass-bugs@intevation.de>
> Cc: <grass5@grass.itc.it>
> Subject: Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export
> legend with d.out.png
> 
>> this bug's URL: http://intevation.de/rt/webrt?serial_num=3592
>> ---------------------------------------------------------------------
>> 
>> Subject: d.vect.thematic: cannot export legend with d.out.png
>> 
>> Platform: GNU/Linux/i386
>> grass obtained from: CVS
>> grass binary for platform: Compiled from Sources
>> GRASS Version: cvs20050830
>> 
>> When creating a legend with d.vect.thematic, I cannot export this to a
>> file with d.out.png. I have to use a screenshot to do so.
>> 
>> It would be nice to be able to export the legend directly, ideally
>> into a vector file, so that I could then modify it easily in a
>> graphics program.
>> 
>> Maybe there could be an option to export the legend with ps.map
>> instead of displaying it with d.graph...
> 
> 
> To survive d.redraw et al. d.graph input needs to be added to the
> command history list via a temporary file. d.text does this already.
> 
> Then it will survive the trip through d.out.png.
> 
> 
> 
> Hamish
> 


Mon, Sep 19 2005 04:15:13    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 19 Sep 2005 14:14:55 +1200
From Hamish <hamish_nospam@yahoo.com>
To Michael Barton <michael.barton@asu.edu>
Cc grass-bugs@intevation.de, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export legend with d.out.png
Message-Id <20050919141455.26b962bc.hamish_nospam@yahoo.com>
In-Reply-To <BF503800.1A7A1%michael.barton@asu.edu>
References <20050917014058.06f2c59c.hamish_nospam@yahoo.com> <BF503800.1A7A1%michael.barton@asu.edu>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> How can d.graph input be added to the command history?

the input (piped from stdin) is written to a temporary file and the
command history is changed so that the command line references that
input file instead of expecting input from stdin. The .tmp file is
persistent until you quit GRASS at which time it is cleared (possible
problem with server installs, but d.text already does this eg).

> Is this something that needs to be added to the d.graph C module?

Yes.

I would like to have wish #3241 done first (merge d.mapgraph into
d.graph)  see http://intevation.de/rt/webrt?serial_num=3241

step 1) for that is merge the bugfixes and updates from d.mapgraph into
d.graph (malloc -> G_malloc, ...), otherwise they are essentially the
same exact code. I would prefer a better C programmer than me did this.

step 2) add -m flag to d.graph to indicate input coordinates are map
units, not percentage of frame. I'm happy to do this part.

We should avoid duplicating the effort of modifying both modules for the
same feature or allow one module to go off on a tangent which would make
the merge that much harder in the future.



Hamish


Mon, Sep 19 2005 07:44:15    Mail sent by michael.barton@asu.edu  
Return-Path <Michael.Barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
Date Sun, 18 Sep 2005 22:43:51 -0700
From Michael Barton <michael.barton@asu.edu>
Subject Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export legend with d.out.png
In-reply-to <20050919141455.26b962bc.hamish_nospam@yahoo.com>
To Hamish <hamish_nospam@yahoo.com>
Cc Paolo Cavallini via RT <grass-bugs@intevation.de>, grass5@grass.itc.it
Message-id <BF539E27.321A%michael.barton@asu.edu>
MIME-version 1.0
Content-type text/plain; charset=US-ASCII
Content-transfer-encoding 7bit
User-Agent Microsoft-Entourage/11.1.0.040913
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
This sounds like a very reasonable plan. When they are merged, it would be
nice if the combined one could also draw a circle as well as a box and line.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

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



> From: Hamish <hamish_nospam@yahoo.com>
> Date: Mon, 19 Sep 2005 14:14:55 +1200
> To: Michael Barton <michael.barton@asu.edu>
> Cc: <grass-bugs@intevation.de>, <grass5@grass.itc.it>
> Subject: Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export
> legend with d.out.png
> 
>> How can d.graph input be added to the command history?
> 
> the input (piped from stdin) is written to a temporary file and the
> command history is changed so that the command line references that
> input file instead of expecting input from stdin. The .tmp file is
> persistent until you quit GRASS at which time it is cleared (possible
> problem with server installs, but d.text already does this eg).
> 
>> Is this something that needs to be added to the d.graph C module?
> 
> Yes.
> 
> I would like to have wish #3241 done first (merge d.mapgraph into
> d.graph)  see http://intevation.de/rt/webrt?serial_num=3241
> 
> step 1) for that is merge the bugfixes and updates from d.mapgraph into
> d.graph (malloc -> G_malloc, ...), otherwise they are essentially the
> same exact code. I would prefer a better C programmer than me did this.
> 
> step 2) add -m flag to d.graph to indicate input coordinates are map
> units, not percentage of frame. I'm happy to do this part.
> 
> We should avoid duplicating the effort of modifying both modules for the
> same feature or allow one module to go off on a tangent which would make
> the merge that much harder in the future.
> 
> 
> 
> Hamish


Mon, Sep 19 2005 10:01:09    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 19 Sep 2005 20:00:46 +1200
From Hamish <hamish_nospam@yahoo.com>
To Michael Barton <michael.barton@asu.edu>
Cc grass-bugs@intevation.de, grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export legend with d.out.png
Message-Id <20050919200046.5a9733e7.hamish_nospam@yahoo.com>
In-Reply-To <BF539E27.321A%michael.barton@asu.edu>
References <20050919141455.26b962bc.hamish_nospam@yahoo.com> <BF539E27.321A%michael.barton@asu.edu>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> This sounds like a very reasonable plan. When they are merged, it
> would be nice if the combined one could also draw a circle as well as
> a box and line.

with a D_symbol() library function d.graph could draw icons too...


Hamish


Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request