1v.out.svg(1)                GRASS GIS User's Manual               v.out.svg(1)
2
3
4

NAME

6       v.out.svg  - Exports a vector map to SVG file.
7

KEYWORDS

9       vector, export, output
10

SYNOPSIS

12       v.out.svg
13       v.out.svg --help
14       v.out.svg  input=name  [layer=string]  output=name type=string  [preci‐
15       sion=integer]   [attribute=name[,name,...]]    [--overwrite]   [--help]
16       [--verbose]  [--quiet]  [--ui]
17
18   Flags:
19       --overwrite
20           Allow output files to overwrite existing files
21
22       --help
23           Print usage summary
24
25       --verbose
26           Verbose module output
27
28       --quiet
29           Quiet module output
30
31       --ui
32           Force launching GUI dialog
33
34   Parameters:
35       input=name [required]
36           Name of input vector map
37           Or data source for direct OGR access
38
39       layer=string
40           Layer number or name (’-1’ for all layers)
41           A  single  vector map can be connected to multiple database tables.
42           This number determines which table to use. When  used  with  direct
43           OGR access this is the layer name.
44           Default: -1
45
46       output=name [required]
47           Name for SVG output file
48
49       type=string [required]
50           Output type
51           Defines which feature-type will be extracted
52           Options: poly, line, point
53           Default: poly
54
55       precision=integer
56           Coordinate precision
57           Default: 6
58
59       attribute=name[,name,...]
60           Attribute(s) to include in output SVG
61

DESCRIPTION

63       v.out.svg  converts GRASS vector data to SVG (Scalable Vector Graphics)
64       code notation.  In particular, it
65
66           •   converts GRASS line, boundary, area, point, centroid objects to
67               SVG <path />, <circle /> elements,
68
69           •   reduces coordinate precision in SVG-output to save bandwidth,
70
71           •   extracts GRASS attributes to gg:name="value" attributes.
72       The precision parameter controls the number of decimals for coordinates
73       output (precision=0 corresponds to integer precision in the output  SVG
74       file).
75

EXAMPLE

77       Export  polygons from GRASS vector map soils (Spearfish sample data) to
78       SVG format:
79       v.out.svg input=soils output=/tmp/output.svg type=poly
80
81       Export lines from GRASS vector map t_hydro (Spearfish sample  data)  to
82       SVG format, set coordinate precision to 0:
83       v.out.svg input=t_hydro output=/tmp/output.svg type=line precision=0
84
85       Export  points  from GRASS vector map archsites (Spearfish sample data)
86       to SVG format, include attribute str1 (name):
87       v.out.svg input=archsites output=/tmp/output.svg type=point precision=0 attrib=str1
88

REFERENCES

90           •   Modul v.out.svg at svg.cc
91
92           •   SVG (Scalable Vector Graphics) at w3c.org
93

SEE ALSO

95       v.out.ogr
96

AUTHOR

98       Klaus Foerster (klaus svg.cc), Innsbruck, Austria
99

SOURCE CODE

101       Available at: v.out.svg source code (history)
102
103       Accessed: Saturday Jan 21 21:16:15 2023
104
105       Main index | Vector index | Topics index | Keywords index  |  Graphical
106       index | Full index
107
108       © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
109
110
111
112GRASS 8.2.1                                                       v.out.svg(1)
Impressum