[GRASS-SVN] r65265 - grass/branches/releasebranch_7_0/lib/cairodriver

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 18 02:16:55 PDT 2015


Author: neteler
Date: 2015-05-18 02:16:55 -0700 (Mon, 18 May 2015)
New Revision: 65265

Modified:
   grass/branches/releasebranch_7_0/lib/cairodriver/cairodriver.html
Log:
cairodriver manual: SVG example added

Modified: grass/branches/releasebranch_7_0/lib/cairodriver/cairodriver.html
===================================================================
--- grass/branches/releasebranch_7_0/lib/cairodriver/cairodriver.html	2015-05-18 09:16:49 UTC (rev 65264)
+++ grass/branches/releasebranch_7_0/lib/cairodriver/cairodriver.html	2015-05-18 09:16:55 UTC (rev 65265)
@@ -84,8 +84,10 @@
   </li>
 </ul>
 
-<h3>Examples</h3>
+<h2>EXAMPLES</h2>
 
+<h3>PNG Example</h3>
+
 Example: using the driver to generate a PNG file (bash-syntax):
 
 <div class="code"><pre>
@@ -101,9 +103,10 @@
 d.vect map=roadsmajor width=2
 </pre></div>
 
-<!-- TODO: why does it generate rasterized output?
+<h3>PDF Examples</h3>
 
-Example: using the driver to generate a PDF file with a vector map (bash-syntax):
+Example: using the driver to generate a PDF vector file with a vector
+map (bash-syntax):
 
 <div class="code"><pre>
 export GRASS_RENDER_IMMEDIATE=cairo
@@ -116,9 +119,10 @@
 d.font Vera
 d.vect map=roadsmajor layer=1 display=shape attrcolumn=ROAD_NAME lcolor=0:90:255
 </pre></div>
--->
 
-Example: using the driver to generate a PDF file with a raster map (bash-syntax):
+<p>
+Example: using the driver to generate a PDF raster file with a raster
+map (bash-syntax):
 
 <div class="code"><pre>
 export GRASS_RENDER_IMMEDIATE=cairo
@@ -131,6 +135,20 @@
 </pre></div>
 
 
+<h3>SVG Example</h3>
+
+Example: using the driver to generate a SVG vector file with a vector
+map (bash-syntax):
+
+<div class="code"><pre>
+export GRASS_RENDER_IMMEDIATE=cairo
+export GRASS_RENDER_FILE=vectormap.svg
+
+g.region vector=roadsmajor
+d.vect map=roadsmajor -c
+</pre></div>
+
+
 <h2>NOTES</h2> 
 
 The driver is still in development. Enable it by specifying



More information about the grass-commit mailing list