[GRASS-SVN] r34310 - grass/trunk/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 15 15:51:59 EST 2008


Author: neteler
Date: 2008-11-15 15:51:59 -0500 (Sat, 15 Nov 2008)
New Revision: 34310

Modified:
   grass/trunk/ps/ps.map/ps.map.html
Log:
example polished to fix trac #362

Modified: grass/trunk/ps/ps.map/ps.map.html
===================================================================
--- grass/trunk/ps/ps.map/ps.map.html	2008-11-15 20:42:52 UTC (rev 34309)
+++ grass/trunk/ps/ps.map/ps.map.html	2008-11-15 20:51:59 UTC (rev 34310)
@@ -1520,14 +1520,9 @@
 <H2>EXAMPLE ps.map INPUT FILE</H2>
 
 The following is an example of a <EM>ps.map</EM> script file. The file has been
-named <EM>spear.soils</EM>.
-This script file can be entered at the command line:
+named <EM>spear.soils</EM>:
 
 <PRE>
-  <B>ps.map input=</B><EM>spear.soils</EM> <B>output=</B><EM>soils.ps</EM>
-</PRE>
-<PRE>
-
 # this ps.map example draws a map of Spearfish, SD
 <B>raster</B> soils
 <B>outline</B>
@@ -1592,9 +1587,21 @@
 <B>paper</B> a4
     <B>end</B>
 <B>end</B>
-
 </PRE>
 
+This script file can be entered at the command line:
+
+<div class="code"><pre>
+ # First set the region
+ g.region rast=soils
+
+ # Generate comment file (or use text editor)
+ echo "Spearfish (SD) soils" &gt; soil.cmt
+
+ # Generate map as Postsript file
+ ps.map input=spear.soils output=soils.ps
+</pre></div>
+
 <P>
 More examples can be found on the
 <a href="http://grass.osgeo.org/wiki/Ps.map_scripts">GRASS Wiki</a>



More information about the grass-commit mailing list