.TH v.out.svg 1grass "" "GRASS 8.3.2" "GRASS GIS User's Manual" .SH NAME \fI\fBv.out.svg\fR\fR \- Exports a vector map to SVG file. .SH KEYWORDS vector, export, output .SH SYNOPSIS \fBv.out.svg\fR .br \fBv.out.svg \-\-help\fR .br \fBv.out.svg\fR \fBinput\fR=\fIname\fR [\fBlayer\fR=\fIstring\fR] \fBoutput\fR=\fIname\fR \fBtype\fR=\fIstring\fR [\fBprecision\fR=\fIinteger\fR] [\fBattribute\fR=\fIname\fR[,\fIname\fR,...]] [\-\-\fBoverwrite\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBinput\fR=\fIname\fR \fB[required]\fR" 4m .br Name of input vector map .br Or data source for direct OGR access .IP "\fBlayer\fR=\fIstring\fR" 4m .br Layer number or name (\(cq\-1\(cq for all layers) .br A single vector map can be connected to multiple database tables. This number determines which table to use. When used with direct OGR access this is the layer name. .br Default: \fI\-1\fR .IP "\fBoutput\fR=\fIname\fR \fB[required]\fR" 4m .br Name for SVG output file .IP "\fBtype\fR=\fIstring\fR \fB[required]\fR" 4m .br Output type .br Defines which feature\-type will be extracted .br Options: \fIpoly, line, point\fR .br Default: \fIpoly\fR .IP "\fBprecision\fR=\fIinteger\fR" 4m .br Coordinate precision .br Default: \fI6\fR .IP "\fBattribute\fR=\fIname[,\fIname\fR,...]\fR" 4m .br Attribute(s) to include in output SVG .SH DESCRIPTION \fIv.out.svg\fR converts GRASS vector data to SVG (Scalable Vector Graphics) code notation. In particular, it .RS 4n .IP \(bu 4n converts GRASS line, boundary, area, point, centroid objects to SVG , elements, .IP \(bu 4n reduces coordinate precision in SVG\-output to save bandwidth, .IP \(bu 4n extracts GRASS attributes to gg:name=\(dqvalue\(dq attributes. .RE The \fIprecision\fR parameter controls the number of decimals for coordinates output (\fIprecision=0\fR corresponds to integer precision in the output SVG file). .SH EXAMPLE .PP Export \fBpolygons\fR from GRASS vector map soils (Spearfish sample data) to SVG format: .br .nf \fC v.out.svg input=soils output=/tmp/output.svg type=poly \fR .fi .PP Export \fBlines\fR from GRASS vector map t_hydro (Spearfish sample data) to SVG format, set coordinate precision to 0: .br .nf \fC v.out.svg input=t_hydro output=/tmp/output.svg type=line precision=0 \fR .fi .PP Export \fBpoints\fR from GRASS vector map archsites (Spearfish sample data) to SVG format, include attribute \fBstr1\fR (name): .br .nf \fC v.out.svg input=archsites output=/tmp/output.svg type=point precision=0 attrib=str1 \fR .fi .SH REFERENCES .RS 4n .IP \(bu 4n Module v.out.svg at svg.cc .IP \(bu 4n SVG (Scalable Vector Graphics) at w3c.org .RE .SH SEE ALSO \fIv.out.ogr\fR .SH AUTHOR Klaus Foerster (klaus svg.cc), Innsbruck, Austria .SH SOURCE CODE .PP Available at: v.out.svg source code (history) .PP Accessed: Friday Mar 08 07:35:10 2024 .PP Main index | Vector index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2024 GRASS Development Team, GRASS GIS 8.3.2 Reference Manual