[GRASS-user] Display output question

Richard Chirgwin rchirgwin at ozemail.com.au
Fri Feb 20 22:22:02 EST 2009


Glynn Clements wrote:
> Jachym Cepicky wrote:
>
>   
>> not JPEG, but I would use d.out.png or 
>>
>> d.mon start=PNG
>> d.*
>> d.mon stop=PNG
>>     
>
> You will get better forward compatibility using the mechanism which
> Moritz suggested (GRASS_RENDER_IMMEDIATE et al). Immediate rendering
> works in both 6.x and 7.0, while d.mon only works in 6.x.
>   
Thanks all,

There's a follow-up question regarding d.mon-based approaches, in that
it doesn't seem to support transparency, which is supported in the map
display - is this correct?

I will check out the rendering mechanism, but found a (brutal)
workaround. However, I will share it ...

The problem was to quickly get jpgs from a very large number of maps, so
I had a friend write a script. The script watches the Grass temp
directory and executes gdal_translate on new PPN outputs after the
screen is rendered - which meant the person creating the output files
just had to draw the map display, rather than drawing the display, going
to the output menu, navigate to the directory and type in a filename.

There were, in all, a couple of hundred maps, it was taking days to
render them all!

I know about using ps.map but didn't have time to write the scripts ...

Cheers,
Richard


More information about the grass-user mailing list