SVG (Scalable Vector Graphics) Writer Parameters
Template File
A template file has several possible uses, including the insertion of predefined geometric elements, the inclusion of Cascading Style Sheets, and the embedding of scripting information.
Enter the path name for the SVG file whose contents will be embedded in the output dataset.
Coordinate Options
Specifies the number of decimal digits to use when writing an SVG element coordinate’s value. The default is 6. Specifying a larger value increases coordinate precision and may increase rendering precision. This is an optional parameter
Normalizes the lower coordinate bounds of the writer’s feature set to (0,0). Normalization can reduce rendering inaccuracies by SVG viewers with small coordinate precision capability. A normalized document’s file size is typically smaller than a non-normalized version.
Writer Parameters
Allows absolute instead of relative coordinates to be used for lines and polygons that are written out as <path> elements.
The default for this parameter is No.
Determines whether the SVG writer should automatically switch white fme_color specifications into black. This parameter does not affect the svg_color (that is, the svg_color attribute takes precedence over the fme_color).
The default for this parameter is Yes.
Determines if the SVG file depends on an external SVG Document Type Definition (DTD).
When set to Yes the document type declaration’s public and system identifier for SVG 1.1 are used by default, but these default identifiers can also be overwritten with the DOCTYPE Public Identifier and DOCTYPE System Identifier parameters.
The default for this parameter is Yes.
This parameter applies only when the Reference External SVG DTD parameter is set to Yes. It specifies the public identifier for the document type declaration. This parameter must be used in conjunction with the DOCTYPE System Identifier parameter: a system identifier must also be simultaneously specified or this parameter has no effect.
This parameter only applies when the Reference External SVG DTD parameter is set to Yes.
It specifies the system identifier for the document type declaration. This keyword can be used alone or in conjunction with the DOCTYPE Public Identifier parameter.
Viewbox is an attribute used to create SVG shapes. This parameter allows you to set the viewbox size. Setting viewbox parameters eliminates extra white space.
By default, the viewbox is only available once you have defined all four parameters:
- minx: the beginning x coordinate
- miny: the beginning y coordinate
- width: width of the viewbox
- height: height of the viewbox
All values must be specified in decimal, integer or scientific notation.
This parameter specifies the prefix that will be used to identify the namespace of all user attributes in the SVG document.
Each user attribute written to the SVG file will be written as an XML attribute with the format namespace_prefix:user_attr = “value”.
The default namespace prefix is “fme”.
This parameter specifies the URI with that the namespace prefix (specified by ATTR_NAMESPACE_PREFIX) will be associated. This will be the namespace URI for all user attributes in the SVG document.
Note: The writer does not check if this is a valid URI that complies with XML standards.
The namespace will be defined as follows, where namespace_prefix is the value defined by ATTR_NAMESPACE_PREFIX and namespace_uri is defined by xmlns:namespace_prefix=“namespace_uri”