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 root topobase layer that is used to describe all the other layers.
<fs:MetaInfo>. The element contains metadata that refers to a specific topobase shape.
<fs:Geo>. The element contains information on shape binding to geographic coordinates.
<fs:Attributes>. The element contains custom metadata that refer to specific shapes.
The following specific attributes are used in elements descriptions:
Attribute | Description |
fs:ItemType | It determines element type. It is specified for a root element or layer. This attribute may not be specified for the displayed elements located in the layer. The attribute may have the following string values: {“Layer”, "LinearLayer", “Item”}. Default value: “Item”. |
See also: