<TITLE>ps.map.new</TITLE>

<body bgcolor="white">

<img src="grass.smlogo.gif">

<hr width=100% align=center size=6 no shade>

<H2>NAME</H2>

<EM><b>ps.map.new</b></EM>  -
Hardcopy PostScript map output utility.

<BR>

<EM>(GRASS Hardcopy PostScript Output Program)</EM>

<H2>SYNOPSIS</H2>

<B>ps.map.new</B>

<BR>

<B>ps.map.new help</B>

<BR>

<B>ps.map.new</B> [<B>\-r</B>] [<B>input=</B><EM>name</EM>] [<B>scale=</B><EM>mapscale</EM>] [<B>copies=</B><EM>n</EM>] <B>output=</B><EM>name</EM>

<H2>DESCRIPTION</H2>

<EM>ps.map.new</EM>
produces an output file containing a PostScript program to
produce hardcopy map products on your system's PostScript output
device.  Output can include a raster map, any number of vector overlays,
site data, text labels, and other spatial data.


<P>

This program has 2 distincts modes of operation.  The command-line
mode requires the user to prepare a file of mapping instructions describing
the various spatial and textual information to be printed prior to running
<EM>ps.map.new</EM>.
The interactive mode (i.e., no command-line arguments) will prompt the
user for items to be mapped and does not require the user
to prepare a file of instructions (some options are not used
in interactive mode).


<P>

The command line flag is:

<DT><B>-r</B> 

<DD>Rotate plot 90 degrees.


<P>



<P>

The command-line parameters are:

<DT><B>input=</B><EM>name</EM> 

<DD>File containing mapping instructions.
(or enter <B>input=-</B> to enter from keyboard).
These instructions are described in detail below.

<DT><B>scale=</B><EM>mapscale</EM> 

<DD>Scale of the output map,  e.g. 1:25000

<BR>

Default:  1 panel


<P>

This parameter is provided as a convenience.  It is identical to the 
<EM>scale</EM>
mapping instruction described below.

<DT><B>output=</B><EM>name</EM> 

<DD>Name of output the file to contain the PostScript program.


<P>



<P>

Note: the user must select a PostScript output device using
<EM>
<A HREF="ps.select.html">ps.select</A>
</EM>
before running <EM>ps.map.new</EM>.


<P>


<H2>MAPPING INSTRUCTIONS</H2>

The mapping instructions allow the user to specify various spatial data
to be plotted. These instructions are normally prepared in a regular
text file using a system editor.
Some instructions are single line instructions while
others are multiple line. Multiple line instructions consist of
the main instruction followed by a subsection of one or more additional
instructions.


<P>

Instructions that may be included in the subsection under several
different main instructions are:

<DT><B>where\ </B><EM>x\ y</EM> 

<DD>The top left corner of the bounding box of the item to be plotted
is located <EM>x</EM> inches from the left edge of the paper and
<EM>y</EM> inches from the top edge of the paper. If <EM>x</EM> is less than
or equal to zero, the default horizontal location is used.  If <EM>y</EM>
is less than or equal to zero, the default vertical location is used.

<DT><B>font\ </B><EM>font\ name</EM> 

<DD>The name of the PostScript font.  The default is <EM>Helvetica</EM>.

<DT><B>fontsize\ </B><EM>font\ size</EM> 

<DD>The size of the PostScript font in 1/72 inch.  The default is 10.

</DT>
<P>


<H2>colortable</H2>

Prints the color table for the raster map layer anywhere on the page.
<PRE>
USAGE:        <B>colortable</B> [y|n]
        <B>where</B> x y
        <B>width</B> table width
        <B>cols</B> table columns
        <B>font</B> font name
        <B>fontsize</B> font size
        <B>color</B> text color
        <B>end</B>
</PRE>
The color table will display the colors for each raster map layer
category value and the category label.
To get a color table, you must have previously requested a raster
map layer.
The default location for the colortable is immediately below any other
map legend information, starting at the left margin.
The default text color is black.
Omitting the <B>colortable</B> instruction would result in
no color table.  <B>Note</B>:  Be careful about asking for color tables for
raster map layers which have many categories, such as elevation.
This could result in the printing of an extremely long color table!!!!!


<P>

This example would print a color table immediately below any other map legend
information, starting at the left margin.
<PRE>
EXAMPLE:        
        <B>colortable</B> y
</PRE>
<P>


<H2>comments</H2>

Prints comments anywhere on the page.
<PRE>
USAGE:        <B>comments</B> commentfile
        <B>where</B> x y
        <B>font</B> font name
        <B>fontsize</B> font size
        <B>color</B> text color
        <B>end</B>
</PRE>
The default location is immediately below the last item item printed,
starting at the left margin.
The default text color is black.

<P>

This example prints in blue
whatever is in the file <EM>veg.comments</EM> starting at
1.5 inches from the left edge of the page and 7.25 inches from the top of
the page, using a 15/72 inch Helvetica Bold font.
<PRE>
EXAMPLE:        
        <B>raster</B> vegetation
        <B>comments</B> veg.comments
        <B>where</B> 1.5 7.25
        <B>font</B> Helvetica Bold
        <B>fontsize</B> 15
        <B>color</B> blue
        <B>end</B>
</PRE>
Presumably, the file
<EM>veg.comments</EM>
contain comments
pertaining to the raster map layer <EM>vegetation</EM>,
such as "This map was created by classifying a LANDSAT TM image".
<P>

<H2>copies</H2>

Specifies the number of copies to be printed.
<PRE>
USAGE:        <B>copies</B> n
</PRE>
Each page will be printed n times.
<P>


<H2>greyrast</H2>

Selects a raster map layer for output in shades of grey.
<PRE>
USAGE:        <B>greyrast</B> mapname|<EM>list</EM>
</PRE>
For each 
<EM>ps.map.new</EM>
run, only one raster map layer can be requested (using either the
<EM>greyrast</EM> or the <EM>raster</EM> instruction).
<P>

<H2>grid</H2>

Overlays a coordinate grid onto the output map.
<PRE>
USAGE:        <B>grid</B> spacing
        <B>color</B> color
        <B>numbers</B> # [color]
        <B>font</B> font name
        <B>fontsize</B> font size
        <B>end</B>
</PRE>
The <B>spacing</B> of the grid is given (in the geographic coordinate
system units) on the main instruction line.  The subsection instructions
allow the user to specify
the <B>color</B> of the grid lines,
whether coordinate <B>numbers</B> should appear
on the grid lines, and
if they
should appear every grid line (1), every other grid line 
(2), etc., and what color the numbers should be.  The defaults are
black grid lines, unnumbered.

<P>

This example would overlay a green grid with a spacing of 10000 meters
(for a metered database, like UTM) onto the output map.  Alternate grid
lines would be numbered with red numbers.
<PRE>
EXAMPLE:
        <B>grid</B> 10000   
        <B>color</B> green
        <B>numbers</B> 2 red
        <B>end</B>
</PRE>
<P>

<H2>header</H2>

Prints the map header above the map.
<PRE>
USAGE:        <B>header</B>
        <B>file</B> header file
        <B>font</B> font name
        <B>fontsize</B> font size
        <B>color</B> text color
        <B>end</B>
</PRE>
If the <EM>header</EM> instruction or the <EM>file</EM> sub-instruction is absent,
the header will consist of the map title and location, each centered on
the page above the map.
The default text color is black.

<P>

This example prints (in red) whatever is in the file <EM>soils.hdr</EM> above
the map, using a 20/72 inch Courier font.
<PRE>
EXAMPLE:        
        <B>header</B>
        <B>file</B> soils.hdr
        <B>font</B> Courier
        <B>fontsize</B> 20
        <B>color</B> red
        <B>end</B>
</PRE>
<P>


<H2>labels</H2>

Selects a labels file for output (see manual entry for
<EM>
<A HREF="p.labels.html">p.labels</A>
).</EM>
<PRE>
USAGE:        <B>labels</B>  labelfile|<EM>list</EM>
        <B>font</B> font name
        <B>end</B>
</PRE>
<P>
NOTE: ps.map.new can read new option 'ROTATE:' from labels file, which
specifies counter clockwise rotation in degrees. 
<P>
This example would paint labels from the labels file called
<EM>town.names</EM>.  Presumably, these labels would indicate the names of
towns on the map.
<PRE>
EXAMPLE:        
        <B>labels</B> town.names
</PRE>
<P>


<H2>line</H2>

Draws lines on the output map.
<PRE>
USAGE:        <B>line</B> east north east north
        <B>line</B> x% y% x% y%
        <B>color</B> color
        <B>width</B> #
        <B>masked</B> [y|n]
        <B>end</B>
</PRE>
The beginning and ending points of the line are entered on the main
instruction.  These points can be defined either by map coordinates or
by using percentages of the geographic region.
The user may also specify line
<B>color</B>,
<B>width</B>
in pixels (accepts decimal points [floating points] as well as integers),
and if the line is to be
<B>masked</B>
by the current mask. (See manual entry for <EM>
<A HREF="r.mask.html">r.mask</A>
</EM> for more
information on the mask.)

<P>

This example would draw a yellow line from the point x=10% y=80%
to the point x=30% y=70%. This line
would be 2 pixels wide and would appear even if there is a mask.
<PRE>
EXAMPLE:
        <B>line</B> 10% 80% 30% 70%
        <B>color</B> yellow
        <B>width</B> 2
        <B>masked</B> n
        <B>end</B>
</PRE>
Of course, multiple lines may be drawn with multiple
<EM>line</EM>
instructions.
<P>


<H2>mapinfo</H2>

Prints the portion of the map legend containing the scale, grid and
region information, on or below the map.
<PRE>
USAGE:        <B>mapinfo</B>
        <B>where</B> x y
        <B>font</B> font name
        <B>fontsize</B> font size
        <B>color</B> text color
        <B>end</B>
</PRE>
The default location is immediately below the map,
starting at the left edge of the map.
The default text color is black.

<P>

This example prints (in brown) the scale, grid and region information
immediately below the map and starting 1.5 inches from the left edge
of the page, using a 12/72 inch Courier font.

<PRE>
EXAMPLE:
        <B>mapinfo</B>
        <B>where</B> 1.5 0
        <B>font</B> Courier
        <B>fontsize</B> 12
        <B>color</B> brown
        <B>end</B>
</PRE>
<P>


<H2>maploc</H2>

Positions the map on the page.
<PRE>
USAGE:        <B>maploc</B>  x y [width height]
</PRE>
The upper left corner of the map will be positioned <EM>x</EM> inches from
the left edge of the page and <EM>y</EM> inches from the top of the page.
If <EM>width</EM> and <EM>height</EM> (in inches) are present, the map will be
rescaled, if necessary, to fit.

<P>

This example positions the upper left corner of the map 2.0 inches from
the left edge and 3.5 inches from the top edge of the map.
<PRE>
EXAMPLE:
        <B>maploc</B> 2.0 3.5
</PRE>
<P>


<H2>outline</H2>

Outlines the areas of a raster map layer with a specified color.
<PRE>
USAGE:        <B>outline</B>
        <B>color</B>  color
        <B>width</B>  width of line in pixels
        <B>end</B>
</PRE>
Distinct areas of the raster map will be separated from each other visually
by drawing a border (or outline) in the specified
<B>color</B>
(default: black). For 
<B>width</B>
the program accepts decimal points [floating points] as well as integers.
Note: it is
important the user enter the instruction <B>end</B> even if a color is not
chosen.
(It is hoped that in the future the outline of a different raster map
layer other than the one currently being painted may be placed on the map.)

<P>

This example would outline the category areas of the
<EM>soils</EM>
raster map layer
in grey.
<PRE>
EXAMPLE:        
        <B>raster</B> soils
        <B>outline</B>   
        <B>color</B> grey
        <B>width</B> 2
        <B>end</B>
</PRE>
<P>


<H2>point</H2>

Places additional points or icons on the output map.
<PRE>
USAGE:        <B>point</B> east north
        <B>point</B> x% y%
        <B>color</B> color
        <B>icon</B> iconfile|<EM>list</EM>
        <B>size</B> #
        <B>masked</B> [y|n]
        <B>end</B>        
</PRE>
The point location is entered in the main instruction line by giving either the map 
coordinates or by using percentages of the geographic region.
The user may also specify the point
<B>color</B>,
the <B>icon</B> file to be used to represent the point location
(see the the manual entry for
<EM>
<A HREF="ps.icon.html">ps.icon</A>
s)</EM>,
the <B>size</B> of the icon as a multiple of the size of the
pattern in the icon file (default is 1.0, aprroximately equivalent to a
10 point character),
and whether the point is to be <B>masked</B>
by the current mask. (See manual entry for <EM>
<A HREF="r.mask.html">r.mask</A>
</EM> for more
information on the mask.)

<P>

This example would place a purple diamond (from icon file
<EM>diamond</EM>) at the point (E456000 N7890000).  This diamond would be the 
approximately the size of a 15 point character
and would not be masked by the current mask.
<PRE>
EXAMPLE:
        <B>point</B> 456000 7890000
        <B>color</B> purple     
        <B>icon</B> diamond
        <B>size</B> 1.5
        <B>masked</B> n
        <B>end</B>        
</PRE>
Of course, multiple points may be drawn with multiple
<EM>point</EM>
instructions.
<P>


<H2>psfile</H2>

Copies a file containing PostScript commands into the output file.

<P>

<B>Note:</B>
<EM>ps.map.new</EM>
will not search for this file.  The user must be in the
correct directory or specify the full path on the <B>psfile</B> instruction.
(Note to /bin/csh users: ~ won't work with this instruction).
<PRE>
USAGE:        <B>psfile</B> filename
</PRE>
This example copies the file "logo.ps" into the output file.
<PRE>
EXAMPLE:        
        <B>psfile</B> logo.ps
</PRE>
<P>

<H2>raster</H2>

Selects a raster map layer for output.
<PRE>
USAGE:        <B>raster</B> mapname|<EM>list</EM>
</PRE>
For each 
<EM>ps.map.new</EM>
run, only one raster map layer can be requested.  If no raster map layer
is requested, a completely white map will be produced.
It can be useful to select no raster map layer in order to
provide a white background for vector images.

<P>

This example would paint a map of the raster map layer <EM>soils</EM>.

<PRE>
EXAMPLE:        
        <B>raster</B> soils
</PRE>
<P>

<H2>read</H2>

Provides <EM>ps.map.new</EM> with a previously prepared input stream.
<PRE>
USAGE:        <B>read</B> previously prepared UNIX file
</PRE>
Mapping instructions can be placed into a file and read into
<EM>ps.map.new.</EM>

<P>

<B>Note:</B>
<EM>ps.map.new</EM>
will not search for this file.  The user must be in the
correct directory or specify the full path on the <B>read</B> instruction.
(Note to /bin/csh users: ~ won't work with this instruction).

<P>

This example reads the UNIX file <EM>pmap.roads</EM> into <EM>ps.map.new</EM>.
This file may contain all the <EM>ps.map.new</EM> instructions for placing
the vector map layer <EM>roads</EM> onto the output map.
<PRE>
EXAMPLE: 
        <B>read</B> pmap.roads
</PRE>
The user may have created this file because this vector map layer
is particularly useful for many <EM>ps.map.new</EM>
outputs.  By using the <B>read</B> option, the user need not enter all the input
for the <B>vector</B> instruction, but simply <B>read</B> the previously prepared
file with the correct instructions.
<P>


<H2>region</H2>

Places the outline of a smaller geographic region
on the output.
<PRE>
USAGE:        <B>region</B> regionfile|<EM>list</EM>
        <B>color</B> color
        <B>width</B> #
        <B>end</B>
</PRE>
Geographic region settings are created and saved using <EM>
<A HREF="g.region.html">g.region</A>
</EM>.
The <EM>ps.map.new</EM> <EM>region</EM> option can be used to show an outline of
a smaller region which was printed on a separate run of <EM>ps.map.new</EM>
on other user-created maps.

<P>

The user can specify the <B>color</B>
and the <B>width</B> in pixel units (accepts decimal points
[floating points] as well as integers) of the outline.
The default is a black border of one pixel width.

<P>

This example would place a white outline, 2 pixels wide, of the
geographic region
called <EM>fire.zones</EM> onto the output map.  This geographic region
would have been created and saved using <EM>
<A HREF="g.region.html">g.region</A>
</EM>.
<PRE>
EXAMPLE:
        <B>region</B> fire.zones
        <B>color</B> white
        <B>width</B> 2
        <B>end</B>
</PRE>
<P>


<H2>scale</H2>

Selects a scale for the output map.
<PRE>
USAGE:        <B>scale</B> <EM>scale</EM>
</PRE>
The scale can be selected either as:

<DT> 

<DD>a relative ratio, e.g. 1:25000;

<DT> 

<DD>an absolute width of the printed map, e.g. 10 inches;

<DT> 

<DD>the number of printed paper panels, e.g. 3 panels
<EM>.I</EM>
(at the present time, only 1 panel is supported);

<DT> 

<DD>the number of miles per inch, e.g. 1 inch equals 4 miles.

</DT>

<P>

This example would set the scale of the map to 1 unit = 25000
units.
<PRE>
EXAMPLE:        
        <B>scale</B> 1:25000
</PRE>
<P>


<H2>setcolor</H2>

Overrides the color assigned to one or more categories
of the raster map layer.
<PRE>
USAGE:        <B>setcolor</B> cat(s) color
</PRE>
This example would set the color for categories 2,5 and 8 of the raster
map layer <EM>watersheds</EM> to white and category 10 to green.
(<B>NOTE</B>: no spaces are inserted between the category values.)
<PRE>
EXAMPLE:        
        <B>raster</B> watersheds
        <B>setcolor</B> 2,5,8 white
        <B>setcolor</B> 10 green
</PRE>
Of course,
<EM>setcolor</EM>
can be requested more than once to override the default color for additional
categories.  More than one category can be changed for each request by listing
all the category values separated by commas (but with no spaces).
<P>


<H2>sites</H2>

Selects sites data to be placed on the output map
(see manual entry for <EM>
<A HREF="s.menu.html">s.menu</A>
</EM>).
<PRE>
USAGE:        <B>sites</B> sitemap|<EM>list</EM>
        <B>color</B> color
        <B>icon</B> iconfile|<EM>list</EM>
        <B>size</B> #
        <B>desc</B> [y|n]
        <B>font</B> font name
        <B>end</B>
</PRE>
The user may specify the
the <B>color</B> of the sites (see section on NAMED COLORS below);
the <B>icon</B> to be used to represent the presence of a site
(see the manual entry for <EM>
<A HREF="p.icons.html">p.icons</A>
</EM>);
the <B>size</B> of the icon (number of times larger than the size it is in
the icon file);
and
whether or not the <B>desc</B>ription associated with each site is also to be
printed.
If the <B>desc</B>ription is to be printed, the <B>font</B> name may be
specified.  The size of the font is proportional to the icon <B>size</B>.
This example would paint a sites map with blue windmills (from an icon file created
by the user using the
<EM>
<A HREF="p.icons.html">p.icons</A>
</EM>
GRASS command) placed at all windmill locations (from a sites list).  These
windmills would be two times larger than the size of the icon in the
icon file and have descriptions from the sites list file printed beside them.
<PRE>
EXAMPLE:
        <B>sites</B> windmills
        <B>color</B> blue
        <B>icon</B> windmill
        <B>size</B> 2
        <B>desc</B> y
        <B>end</B>
</PRE>
<P>


<H2>text</H2>

Places text on the map.
<PRE>
USAGE:        <B>text</B>  east north text
        <B>text</B>  x% y% text
        <B>font</B> fontname
        <B>color</B> color|none
        <B>width</B> #
        <B>hcolor</B> color|none
        <B>hwidth</B> #
        <B>background</B> color|none
        <B>border</B> color|none
        <B>size</B> #
        <B>ref</B> reference point
        <B>xoffset</B> #
        <B>yoffset</B> #
        <B>opaque</B> [y|n]
        <B>end</B>
</PRE>
The user specifies where the text will be placed by
providing map coordinates or percentages of the geographic region map.
The text follows these coordinates
on the same instruction line.
More than one line of text can be
specified by notating the end of a line with
<B>\en</B>
(e.g. USA\|\enCERL).

<P>

The user can then specify various text features:

<P>

<B>font:</B>
cyrilc gothgbt gothgrt gothitt greekc greekcs greekp greeks italicc
italiccs italict romanc romancs romand romans romant scriptc scripts
(The default font is romans);

<P>

<B>color</B>
(see NAMED COLORS);

<P>

<B>width</B>
of the lines used to draw the text to make thicker letters
(accepts decimal points [floating points] as well as integers);

<P>

<B>size</B>
as the vertical height of the letters in meters on the
ground (text size will grow or shrink depending on the scale at which
the map is painted);

<P>

the highlight color (<B>hcolor</B>) and
the width of the highlight color (<B>hwidth</B>);

<P>

the text-enclosing-box <B>background</B> color;
the text box <B>border</B> color;

<P>

<B>ref.</B>
This reference point specifies the text handle - what
part of the text should be placed on the location specified by the map
coordinates.  Reference points can refer to:
[lower|upper|center] [left|right|center] of the text to be printed;

<P>

<B>yoffset</B>,
which provides finer placement of text by shifting the
text a vertical distance in pixels from the specified north.  The vertical 
offset will shift the location to the south if positive, north if negative;


<P>

<B>xoffset</B>,
which shifts the text a horizontal distance in pixels from
the specified east The horizontal offset will shift the location east if 
positive, west if negative;


<P>

whether or not the text should be <B>opaque</B> to vectors.  Entering <B>no</B>
to the opaque option will allow the user to see any vectors which go
through the text's background box.  Otherwise, they will end at the box's edge.

<P>
<P>

This example would place the text
<EM>SPEARFISH LAND COVER</EM>
at the coordinates E650000 N7365000. The text would be a total of
3 pixels wide (2 pixels of red text and 1 pixel black highlight), have a white
background enclosed in a red box, and be 500 meters in size.  The lower right
corner of the text would be centered over the coordinates provided.  All
vectors on the map would stop at the border of this text.
<PRE>
EXAMPLE:        
        <B>text</B> 650000 7365000 SPEARFISH LAND COVER
        <B>font</B> romand
        <B>color</B> red
        <B>width</B> 2
        <B>hcolor</B> black
        <B>hwidth</B> 1
        <B>background</B> white
        <B>border</B> red
        <B>size</B> 500
        <B>ref</B> lower left 
        <B>opaque</B> y
        <B>end</B>
</PRE>
<P>


<H2>vector</H2>

Selects a vector map layer for output.
<PRE>
USAGE:        <B>vector</B> vectormap|<EM>list</EM>
        <B>color</B> color
        <B>acolor</B> r g b        
        <B>width</B> #
        <B>cwidth</B> #
        <B>hcolor</B> color
        <B>hwidth</B> #
        <B>offset</B> #
        <B>coffset</B> #
        <B>ref</B> left|right
        <B>masked</B> [y|n]
        <B>style</B>  0-9
        <B>line_cat</B> #        
        <B>label</B> label
        <B>lpos</B> 0|1-20
        <B>end</B>
</PRE>
The user can specify:
<P>
<B>color</B> - color of the vector lines or area boundaries;
<P>
<B>acolor</B> - the area color. If acolor is used areas are plotted
instead of lines (accepts 3 integers from 0 to 255 for red, green
and blue separated by spaces);
<P>
<B>width</B> - width of the vectors lines or area boundaries in pixels
(accepts decimal points [floating points] as well as integers);
<P>
<B>cwidth</B> - width of the vectors lines. If cwidth is used then 
width of line is equal to cwidth * category value and width is 
used in legend;
<P>
<B>hcolor</B> - the highlight color for the vector lines;
<P>
<B>hwidth</B> - the width of the highlight color in pixels;
<P>
<B>offset</B> (experimental) - offset for the vectors lines in pixels for plotting
parallel lines in distance equal to offset (accepts positive or 
negative decimal points);
<P>
<B>coffset</B> (experimental) - offset for the vectors lines. If coffset is used then 
offset of line is equal to coffset * category value and offset is 
used in legend;
<P>
<B>ref</B> (experimental) - line justification. 
<P>
<B>masked</B> - whether or not the raster map layer is to be masked
by the current mask 
(see manual entry <EM>
<A HREF="r.mask.html">r.mask</A>
</EM> for more information on the mask);
<P>
<B>style</B> - the line style allows the vectors
to be dashed in different patterns.  This is done by typing a
series of numbers (0's and 1's) in a desired sequence or pattern.
Blanks and
non-digit characters are recognized as 0's. Using 0 would allow the
colors of the raster map layer (or the background color
if no raster map layer was selected) to show through;
<P>
<B>line_cat</B> - which category should be plotted (default is all);
<P>
<B>label</B> - for description in vlegend. Default is: 
map(mapset);
<P>
<B>lpos</B> - position vector is plotted in legend. If lpos is
0 then this vector is omitted in legend. If more vectors used the 
same lpos then their symbols in legend are merged and label for
first vector is used.

<P>
<P>

This example would paint a map of the vector map layer
named <EM>streams</EM>.
These streams would be a total of 3 pixels wide (the inner two pixels blue and
the outer highlight pixel white).  The map would not show streams outside of the
current mask. Only streams of category 2 will be plotted.
In legend appeares label 'Streams - category 2'.

<PRE>
EXAMPLE:        
        <B>vector</B> streams
        <B>color</B> blue
        <B>width</B> 2
        <B>hcolor</B> white
        <B>hwidth</B> 1
        <B>masked</B> y
        <B>line_cat</B> 2        
        <B>label</B> Streams - category 2
        <B>end</B>
</PRE>
<P>


<H2>verbose</H2>

Changes the amount of talking <EM>ps.map.new</EM> will do.
<PRE>
USAGE: <B>verbose</B> [0|1|2]
</PRE>
A higher value implies more chatter.  The default is 2.
This example sets the amount of chatter to a
minimum.
<PRE>
EXAMPLE:        
        <B>verbose</B> 0
</PRE>
<P>


<H2>vlegend</H2>

Prints the portion of the map legend containing the 
vector information, on or below the map.

<PRE>
USAGE:        <B>vlegend</B>
        <B>where</B> x y
        <B>font</B> font name
        <B>fontsize</B> font size
        <B>end</B>
</PRE>
The default location is immediately below the legend containing the
scale, grid and region information,
starting at the left edge of the map.
If the <EM>where</EM> instruction is present and <EM>y</EM> is less than or
equal to zero, the vector legend will be positioned immediately below
the map, starting <EM>x</EM> inches from the left edge of the page.

<P>

This example prints the vector legend
immediately below the map and starting 4.5 inches from the left edge
of the page, using a 12/72 inch Helvetica font.

<PRE>
EXAMPLE:        
        <B>vlegend</B>
        <B>where</B> 4.5 0
        <B>font</B> Courier
        <B>fontsize</B> 12
        <B>end</B>
</PRE>
<P>


<H2>end</H2>

Terminates input and begin painting the map.

<PRE>
USAGE:        <B>end</B>
</PRE>
<P>


<H2>NAMED COLORS</H2>

The following are the colors that are accepted by <EM>ps.map.new</EM>:

<PRE>

aqua
black
blue
brown
cyan
gray
green
grey
indigo
magenta
orange
purple
red
violet
white
yellow
</PRE>


<H2>EXAMPLE ps.map.new INPUT FILE</H2>

The following is an example of a <EM>ps.map.new</EM> script file. The file has been
named
<EM>spear.soils</EM>.  For the purposes of illustration, the file is in
two columns.  This script file can be entered at the command line:

<PRE>
  <B>ps.map.new input=</B><EM>spear.soils</EM> <B>output=</B><EM>soils.ps</EM>
</PRE>
<PRE>

<B>raster</B> soils
<B>vector</B> roads
   <B>width</B> 2
   <B>style</B> 0011
   <B>color</B> 1 black  
   <B>color</B> 2 red  
   <B>masked</B> n
   <B>end</B>   
<B>labels</B> town.names
<B>region</B> subregion          
   <B>color</B> white        
   <B>width</B> 2        
   <B>end</B>                
<B>grid</B> 10000        
   <B>color</B> green        
   <B>numbers</B> 2 red        
   <B>end</B>                  
<B>outline</B>                   
   <B>color</B> black        
   <B>end</B>                
<B>colortable</B> y        
<B>comments</B> soil.cmt
   <B>font</B> Helvetica        
   <B>end</B>                   
<B>scale</B> 1:25000            
<B>setcolor</B> 6,8,9 white        
<B>setcolor</B> 10 green
<B>vlegend</B>
    <B>where</B> 4.5 0
    <B>end</B>
<B>text</B> 608000.00 3476004.73 SPEARFISH SOILS MAP
    <B>color</B> red  
    <B>width</B> 2  
    <B>hcolor</B> black
    <B>hwidth</B> 1  
    <B>background</B> white
    <B>border</B> red  
    <B>size</B> 500
    <B>ref</B> lower left
    <B>opaque</B> y
    <B>end</B>
<B>line</B> 606969.73 3423092.91 616969.73 3423092.91
    <B>color</B> yellow
    <B>width</B> 2
    <B>opaque</B> yes
    <B>end</B>
<B>point</B> 40% 60%
    <B>color</B> purple
    <B>icon</B> diamond
    <B>size</B> 2        
    <B>masked</B> n
    <B>end</B>        
<B>end</B>        

</PRE>

<H2>INTERACTIVE MODE</H2>

If the user simply enters
<EM>ps.map.new</EM>
without arguments, then a simple prompting session occurs.
Some, but not all of the non-interactive requests are available
at this level.

<H2>SEE ALSO</H2>

<EM>
<A HREF="ps.icon.html">ps.icon</A>
</EM><br>
<EM>
<A HREF="ps.select.html">ps.select</A>
</EM>

<H2>AUTHOR</H2>

Paul Carlson, USDA, SCS, NHQ-CGIS<BR>Modifications: Radim Blazek