~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to vector/v.out.svg/v.out.svg.html

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<h2>DESCRIPTION</h2>
 
2
 
 
3
<em>v.out.svg</em> converts GRASS vector data to SVG (Scalable Vector Graphics) code notation.
 
4
In particular, it
 
5
<ul>
 
6
<li>converts GRASS line, boundary, area, point, centroid objects to SVG 
 
7
  &lt;path /&gt;, &lt;circle /&gt; elements,</li>
 
8
<li>reduces coordinate precision in SVG-output to save bandwidth,</li>
 
9
<li>extracts GRASS attributes to gg:name="value" attributes.</li>
 
10
</ul>
 
11
 
 
12
The <em>precision</em> parameter controls the number of decimals for coordinates
 
13
output (<em>precision=0</em> corresponds to integer precision in the output SVG file).
 
14
 
 
15
<h2>EXAMPLE</h2>
 
16
 
 
17
<p>Export <b>polygons</b> from GRASS vector map soils (Spearfish sample data) to SVG format:
 
18
<div class="code"><pre>
 
19
v.out.svg input=soils output=/tmp/output.svg type=poly
 
20
</pre></div>
 
21
 
 
22
<p>Export <b>lines</b> from GRASS vector map t_hydro (Spearfish sample
 
23
data) to SVG format, set coordinate precision to 0:
 
24
<div class="code"><pre>
 
25
v.out.svg input=t_hydro output=/tmp/output.svg type=line precision=0
 
26
</pre></div>
 
27
 
 
28
<p>Export <b>points</b> from GRASS vector map archsites (Spearfish sample
 
29
data) to SVG format, include attribute <b>str1</b> (name):
 
30
<div class="code"><pre>
 
31
v.out.svg input=archsites output=/tmp/output.svg type=point precision=0 attrib=str1
 
32
</pre></div>
 
33
 
 
34
<h2>REFERENCES</h2>
 
35
 
 
36
<a href="http://svg.cc/grass/index.html">Modul v.out.svg at svg.cc</a>
 
37
<br>
 
38
<a href="http://www.w3.org/Graphics/SVG/">SVG (Scalable Vector Graphics) at w3c.org</a>
 
39
 
 
40
 
 
41
<h2>SEE ALSO</h2>
 
42
 
 
43
<em><a href="v.out.ogr.html">v.out.ogr</a></em>
 
44
 
 
45
<h2>AUTHOR</h2>
 
46
 
 
47
Klaus Foerster (klaus svg.cc), Innsbruck, Austria
 
48
 
 
49
<p><i>Last changed: $Date: 2011-11-08 13:24:20 -0800 (Tue, 08 Nov 2011) $</i>