<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>GRASS GIS: v.out.svg</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="grassdocs.css" type="text/css"> </head> <body bgcolor="white"> <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> <h2>NAME</h2> <em><b>v.out.svg</b></em> - Exports a GRASS vector map to SVG. <h2>KEYWORDS</h2> vector, export <h2>SYNOPSIS</h2> <b>v.out.svg</b><br> <b>v.out.svg help</b><br> <b>v.out.svg</b> <b>input</b>=<em>name</em> <b>output</b>=<em>name</em> <b>type</b>=<em>string</em> [<b>precision</b>=<em>integer</em>] [<b>attribute</b>=<em>string</em>[,<i>string</i>,...]] [<b>layer</b>=<em>integer</em>] [--<b>verbose</b>] [--<b>quiet</b>] <h3>Parameters:</h3> <DL> <DT><b>input</b>=<em>name</em></DT> <DD>Name of input vector map</DD> <DT><b>output</b>=<em>name</em></DT> <DD>Name for SVG output file</DD> <DT><b>type</b>=<em>string</em></DT> <DD>Output type</DD> <DD>Defines which feature-type will be extracted</DD> <DD>Options: <em>poly,line,point</em></DD> <DD>Default: <em>poly</em></DD> <DT><b>precision</b>=<em>integer</em></DT> <DD>Coordinate precision</DD> <DD>Default: <em>6</em></DD> <DT><b>attribute</b>=<em>string[,<i>string</i>,...]</em></DT> <DD>Attribute(s) to include in output SVG</DD> <DT><b>layer</b>=<em>integer</em></DT> <DD>Layer number</DD> <DD>A single vector map can be connected to multiple database tables. This number determines which table to use.</DD> <DD>Default: <em>1</em></DD> </DL> <h2>DESCRIPTION</h2> <em>v.out.svg</em> converts GRASS vector data to SVG (Scalable Vector Graphics) code notation. In particular, it <ul> <li>converts GRASS line, boundary, area, point, centroid objects to SVG <path />, <circle /> elements,</li> <li>reduces coordinate precision in SVG-output to save bandwidth,</li> <li>extracts GRASS attributes to gg:name="value" attributes.</li> </ul> The <em>precision</em> parameter controls the number of decimals for coordinates output (<em>precision=0</em> corresponds to integer precision in the output SVG file). <h2>EXAMPLE</h2> <p> Export <b>polygons</b> from GRASS vector map soils (Spearfish sample data) to SVG format: <div class="code"><pre> v.out.svg input=soils output=/tmp/output.svg type=poly </pre></div> <p> Export <b>lines</b> from GRASS vector map t_hydro (Spearfish sample data) to SVG format, set coordinate precision to 0: <div class="code"><pre> v.out.svg input=t_hydro output=/tmp/output.svg type=line precision=0 </pre></div> <p> Export <b>points</b> from GRASS vector map archsites (Spearfish sample data) to SVG format, include attribute <b>str1</b> (name): <div class="code"><pre> v.out.svg input=archsites output=/tmp/output.svg type=point precision=0 attrib=str1 </pre></div> <H2>REFERENCES</H2> <a href="http://svg.cc/grass/index.html">Modul v.out.svg at svg.cc</a> <br> <a href="http://www.w3.org/Graphics/SVG/">SVG (Scalable Vector Graphics) at w3c.org</a> <h2>SEE ALSO</h2> <em><A HREF="v.out.ogr.html">v.out.ogr</A></em> <h2>AUTHOR</h2> Klaus Foerster (klaus svg.cc), Innsbruck, Austria <p><i>Last changed: $Date: 2007-07-04 14:49:30 +0200 (Wed, 04 Jul 2007) $</i> <HR> <P><a href="index.html">Main index</a> - <a href="vector.html">vector index</a> - <a href="full_index.html">Full index</a></P> <P>© 2003-2008 <a href="http://grass.osgeo.org">GRASS Development Team</a></p> </body> </html>