Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 413e0bdb3c48563b2d8d9038d07d5533 > files > 1982

grass-6.3.0-15.fc13.i686.rpm


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
 <TITLE>PS driver</TITLE>
 <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
 <link rel="stylesheet" href="grassdocs.css" type="text/css">
</HEAD>
<BODY bgColor=white>

<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>

<H2>NAME</H2>
<EM><B> PS driver</B></EM>  - driver to create PostScript files
<BR><EM>(drivers)</EM> 
<H2>DESCRIPTION</H2>

The PS driver generates a PostScript file from GRASS display commands.
The driver is started as 'pseudo' monitor (PS file instead) and when
stopped, all output from previously used display commands are written
to the PostScript file.

<H2>USAGE</H2>
<H3>Environment variables</H3>
Several environment variables effect the operation 
of the PS driver:

<p>GRASS_PSFILE
<br>&nbsp; name of output file. If it ends with ".eps" an EPS file
will be created.

<p>GRASS_PAPER <br>&nbsp; sets the screen dimensions and margins to
fit a standard paper size, see also GRASS_WIDTH, GRASS_HEIGHT.

<p>GRASS_WIDTH
<br>&nbsp; defines the width of the screen, see also GRASS_HEIGHT

<p>GRASS_HEIGHT
<br>&nbsp; defines the height of the screen, see also GRASS_WIDTH

<p>GRASS_TRUECOLOR
<br>&nbsp; if "TRUE", the PS driver generates color output, otherwise
monochrome.

<p>GRASS_LANDSCAPE
<br>&nbsp; if "TRUE", the screen is rotated 90 degrees
counter-clockwise so that a "landscape" screen fits better on
"portrait" paper.

<p>GRASS_PS_HEADER
<br>&nbsp; if "FALSE", the output is appended to any existing file,
and no prolog or setup sections are generated.

<p>GRASS_PS_TRAILER
<br>&nbsp; if "FALSE", no trailer section is generated.


<H3>Example</H3>
<OL>
<LI>Start up the driver<BR><PRE>
         d.mon start=PS
</PRE>
<LI>Display raster map and vector polygons<BR>
<PRE>
         d.rast <i>somerastermap</i>
         d.vect map=<i>somevectormap</i> color=red
</PRE>
<LI> Stop the driver subsequently. This will write a 
file named <i>map.ps</i> to be created in your current directory:
<PRE>
         d.mon stop=PS
</PRE></LI>

</OL>

<H2>NOTES</H2> 

The resolution of the <i>PS</i> raster map is defined by the map
extents. Use <em>g.region -p</em> to get the number of rows and cols and
use the environment variables to set the PS size. If you would like a
larger image, multiply both rows and cols by the same whole number to
preserve the aspect ratio.
<P>
GRASS_TRUECOLOR requires either PostScript level 2 or level 1 plus the
colorimage and setrgbcolor operators (this is the case for colour printers
which pre-date level 2 PostScript).
<p>
Only masked images (d.rast -o, d.rgb -o, d.his -n) require PostScript level 3.

<h2>SEE ALSO</h2>
<EM>
<A HREF="htmlmapdriver.html">HTML map driver</A>,
<A HREF="pngdriver.html">PNG driver</A>,
<A href="xdriver.html">XDRIVER</A>
<BR>
<A HREF="d.frame.html">d.frame</A>,
<A href="d.out.file.html">d.out.file</A>,
<A href="d.mon.html">d.mon</A>,
<A href="d.rast.html">d.rast</A>,
<A href="d.vect.html">d.vect</A>
</EM>

<H2>AUTHOR</H2>

Glynn Clements, 2007

<p><i>Last changed: $Date: 2007-08-23 15:39:39 +0200 (Thu, 23 Aug 2007) $</i>
<HR>
<P><a href="index.html">Main index</a> - <a href="psdriver.html">psdriver index</a> - <a href="full_index.html">Full index</a></P>
<P>&copy; 2003-2008 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>