NAME

PNG driver - driver to create PNG and PPM images
(drivers)

DESCRIPTION

The PNG driver generates PNG and PPM images from GRASS display commands. Per default PNG files are written.

USAGE

Environment variables

Several environment variables effect the operation of the PNG driver.

Example

  1. Start up the driver
             d.mon start=PNG
             d.mon select=PNG
    
  2. Display raster map and vector polygons
             d.rast somerastermap
             d.vect map=somevectormap color=red
    
  3. Stop the driver subsequently. This will write a file named map.png to be created in your current directory:
             d.mon stop=PNG
    

NOTES

The PNG driver uses libpng (see the libpng home page) and zlib (see the info-zip home page), all which needs to be installed for the PNG driver to work (it's worth it).

The resolution of the PNG raster map is defined by the map extents. Use g.region -p to get the number of rows and cols and use the environment variables to set the PNG size. If you would like a larger image, multiply both rows and cols by the same whole number to preserve the aspect ratio.

SEE ALSO

HTMLMAP driver, celldriver, XDRIVER, d.area, d.mon, d.vect

AUTHOR

Per Henrik Johansen
phj@norgit.no
NORGIT AS

Rewritten by Glynn Clements, 2003

Last changed: $Date: 2004/08/20 15:01:46 $