This class implements
IGroupParser
for a SVG map.
the "g" element is used to define the group(s) that should be parsed.
The parser only recognizes the following basic shapes:
- rect
- line
- circle
- ellipse
- polyline
- polygon
In addition any number of grouping elements are allowed.
For all elements only the coordinates and the transform attribute are used. This means that rounded corners etc. are ignored.
Every element/shape can use the transform attribute. The following transformations may be used:
To use the svg map with
CartesianPlot2D
it has to contain a "g" element with an id.
See
w3c® SVG standard definition for more information.
During the process of parsing most of the time is spent in the
XMLStreamReader
.
A known issue is a
element in the file. Removing this element can speed up the parsing significantly.