[GRASS5] New script for monitor output to multiple formats

Michael Barton michael.barton at asu.edu
Wed Sep 7 12:28:19 EDT 2005


Soeren,

Thanks for the testing.

For the transparent and black/white background options, I used

export GRASS_BACKGROUNDCOLOR=
export GRASS_TRANSPARENT=

that are listed in the PNG driver documentation.

Do these do what they claim to do? I'm not sure how to test.

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: Soeren Gebbert <soeren at pool.math.TU-Berlin.DE>
> Date: Tue, 6 Sep 2005 12:18:33 +0200 (CEST)
> To: Michael Barton <michael.barton at asu.edu>
> Cc: Grass Developers List <grass5 at grass.itc.it>
> Subject: Re: [GRASS5] New script for monitor output to multiple formats
> 
> Hi,
> 
> On Sun, 4 Sep 2005, Michael Barton wrote:
> 
>> Colleagues and co-conspirators
>> 
>> I¹d like those of you with different systems to test this script if you
>> could. As part of my updates to the GIS Manager, I¹ve expanded the
>> functionality of d.out.png.
> 
> I have tested the script on PIII 450Mhz 192MB Linux Debian Testing with
> grass6.1-cvs and AMD 3000+ 32Bit 512MB Linux Fedora Core 3 with
> grass6.1-cvs.
> The script works well, i've tested every output format but not
> every resolution with every outputformat, only with tif and png.
> 
> I've used the spearfish dataset and visualized raster maps, vectors,
> labels and the scalarbar. Looks good, but the black or transparent background
> didnt worked. I watched the pictures with gimp 2.something.
> 
> Besides background and transparency the script work very well.
> 
> Best regards
> Soeren
> 
>> 
>> The script I¹ve attached here‹d.out.file‹will export the current display
>> monitor to several different file formats: PNG and PPM (using Glynn¹s update
>> of the PNG driver) from the PNG driver, and to TIFF, JPEG, and BMP using
>> gdal_translate. PNG compression, JPEG compression, and selections for
>> transparent background, white (now default), and black backgrounds are
>> supported.
>> 
>> If this works OK on other systems besides my  Mac (OSX 10.4), I¹ll add it to
>> the CVS to replace d.out.png.
>> 
>> Thanks much
>> 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
>> 
>> 
>> 




More information about the grass-dev mailing list