[GRASS-SVN] r34311 - grass/branches/develbranch_6/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 15 15:52:45 EST 2008


Author: neteler
Date: 2008-11-15 15:52:45 -0500 (Sat, 15 Nov 2008)
New Revision: 34311

Modified:
   grass/branches/develbranch_6/ps/ps.map/description.html
Log:
example polished to fix trac #362 (merge from trunk)

Modified: grass/branches/develbranch_6/ps/ps.map/description.html
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/description.html	2008-11-15 20:51:59 UTC (rev 34310)
+++ grass/branches/develbranch_6/ps/ps.map/description.html	2008-11-15 20:52:45 UTC (rev 34311)
@@ -1522,14 +1522,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>
@@ -1594,9 +1589,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