[GRASS-SVN] r56608 - grass/trunk/lib/cairodriver

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 5 07:05:05 PDT 2013


Author: neteler
Date: 2013-06-05 07:05:04 -0700 (Wed, 05 Jun 2013)
New Revision: 56608

Modified:
   grass/trunk/lib/cairodriver/cairodriver.html
Log:
cairodriver: vector example added (but commented out)

Modified: grass/trunk/lib/cairodriver/cairodriver.html
===================================================================
--- grass/trunk/lib/cairodriver/cairodriver.html	2013-06-05 13:41:07 UTC (rev 56607)
+++ grass/trunk/lib/cairodriver/cairodriver.html	2013-06-05 14:05:04 UTC (rev 56608)
@@ -96,7 +96,7 @@
 
 <h3>Examples</h3>
 
-Example using the driver to generate a PNG file (bash-syntax):
+Example: using the driver to generate a PNG file (bash-syntax):
 
 <div class="code"><pre>
 export GRASS_RENDER_IMMEDIATE=cairo
@@ -111,14 +111,29 @@
 d.vect map=roadsmajor width=2
 </pre></div>
 
-Example using the driver to generate a PDF file (bash-syntax):
+<!-- TODO: why does it generate rasterized output?
 
+Example: using the driver to generate a PDF file with a vector map (bash-syntax):
+
 <div class="code"><pre>
 export GRASS_RENDER_IMMEDIATE=cairo
 export GRASS_PNGFILE=nc_spm.pdf
 export GRASS_WIDTH=800
 export GRASS_HEIGHT=800
 
+g.region vect=roadsmajor
+d.vect map=roadsmajor layer=1 display=shape,attr attrcolumn=ROAD_NAME lcolor=0:90:255
+</pre></div>
+-->
+
+Example: using the driver to generate a PDF file with a raster map (bash-syntax):
+
+<div class="code"><pre>
+export GRASS_RENDER_IMMEDIATE=cairo
+export GRASS_PNGFILE=nc_spm.pdf
+export GRASS_WIDTH=800
+export GRASS_HEIGHT=800
+
 g.region rast=elevation
 d.rast map=elevation
 </pre></div>



More information about the grass-commit mailing list