Generally, a topobase structure looks as follows:
<svg version="1.1" xmlns:fs="http://www.fsight.ru" width="853px" height="640px" proportionality="0.75" xmlns="http://www.w3.org/2000/svg">
<g fs:ItemType="Layer" id="Root">
<g id="Regions" fs:ItemType="Layer">
<g id="RU-MOS" style="fill: #B0B0B0; stroke: #000000; stroke-width: 1;">
<path d="M..." />
...
</g>
...
</g>
</g>
<fs:MetaInfo>
<fs:Geo>
<fs:GeoItem Longitude="..." Latitude="..." X="..." Y="..." />
...
</fs:Geo>
<fs:Attributes>
<fs:Attribute Name="ISO" Type="string">
<fs:Data Id="RU-MOS" Value="RU-MOS" />
...
</fs:Attribute>
...
</fs:Attributes>
</fs:MetaInfo>
</svg>
The specification determines the following elements that are used to create a topobase:
<svg>. A root element of the document that indicates SVG namespace.
<g>. Element of the topobase layer that is used to describe all the other layers. Each topobase should include the root layer containing a regional layer, which in turn includes displayed layers. The element should contain the following attributes:
id. A string attribute, map layer identifier. It is specified for each layer. This attribute should have the “Root” or “RootLayer” value for the root layer. In the regional layer the attribute is assigned with the “Regions” value. The attribute should have the values matching with the ISO or IdMapping attributes for the displayed layers.
fs:ItemType. A string attribute that determines an element type. It is specified for the root and the regional layers. It is not specified for the displayed elements in the regional layer. The attribute can have the following values: {“Layer”, "LinearLayer", “Item”}. The default value: “Item”.
It is not allowed to use additional <g> elements inside the <g> element of displayed layer.
<fs:MetaInfo>. The element containing metadata related belonging to the specific topobase shape. It includes the following child elements:
<fs:Geo>. The element containing information about binding of shapes to geographic coordinates.
<fs:Attributes>. The element contains custom metadata that refer to specific shapes.
See also: