[GRASS-dev] why d.vect.thematic won't run on WinGRASS - d.mon problem

Michael Barton michael.barton at asu.edu
Thu Jan 24 10:30:23 EST 2008


So it builds the PNG as it goes, and then the TclTk GUI could grab  
the completed composite when it's done?

This sounds almost too good to be true.

Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

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



On Jan 24, 2008, at 8:24 AM, Moritz Lennert wrote:

> On 24/01/08 16:07, Michael Barton wrote:
>> On Jan 24, 2008, at 2:54 AM, grass-dev-request at lists.osgeo.org wrote:
>>> Date: Thu, 24 Jan 2008 10:53:51 +0000
>>> From: Glynn Clements <glynn at gclements.plus.com>
>>> Subject: Re: [GRASS-dev] why d.vect.thematic won't run on WinGRASS -
>>>     d.mon    problem
>>> To: Michael Barton <michael.barton at asu.edu>
>>> Cc: GRASS developers list <grass-dev at lists.osgeo.org>
>>> Message-ID: <18328.28223.869808.987628 at cerise.gclements.plus.com>
>>> Content-Type: text/plain; charset=us-ascii
>>>
>>>
>>> Michael Barton wrote:
>>>
>>>>> If you just want d.vect.thematic to work with WinGRASS,  
>>>>> changing it to
>>>>> use GRASS_RENDER_IMMEDIATE=TRUE instead of "d.mon start=PNG" would
>>>>> probably be less work than getting monitors working.
>>>>
>>>> In fact, we recently had to change d.vect.thematic to set
>>>> GRASS_RENDER_IMMEDIATE=FALSE so that it's multiple iterations of
>>>> d.vect would composite in the PNG monitor and then be output as  
>>>> a PNG
>>>> to the GUI.
>>>
>>> You can use GRASS_PNG_READ=TRUE to have it read an existing file at
>>> startup, rather than starting with a blank "screen". That way, each
>>> command will overlay the output from previous commands.
>>>
>>> --Glynn Clements <glynn at gclements.plus.com>
>>>
>> Glynn,
>> This sounds like it might be a way out of this dilemma. Can you  
>> explain this setting a it more? Also, once all the commands are  
>> overlayed is there someway to get them to output to a PNG or PNM  
>> so that the GUI can pick it up--since we can't do it with d.mon  
>> stop=PNG?
>
> GRASS_RENDER_IMMEDIATE=TRUE always outputs a PNG or PNM file  
> (depending on the setting of GRASS_PNGFILE. As the manual on the  
> PNG env variables says: if you set GRASS_PNG_READ to "TRUE", "the  
> PNG driver will initialize the image from the contents of  
> $GRASS_PNGFILE", i.e. it will read the contents of $GRASS_PNGFILE  
> and adds the results of your drawing command to it. The output thus  
> still is $GRASS_PNGFILE.
>
> Moritz
>
>
>> Michael
>> ____________________
>> C. Michael Barton, Professor of Anthropology
>> Director of Graduate Studies
>> School of Human Evolution & Social Change
>> Center for Social Dynamics & Complexity
>> Arizona State University
>> Phone: 480-965-6262
>> Fax: 480-965-7671
>> www: <www.public.asu.edu/~cmbarton>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>



More information about the grass-dev mailing list