Generally, a topobase structure looks as follows:
<svg version="1.1" xmlns:p5="http://www.fsight.ru" width="853px" height="640px" proportionality="0.75" xmlns="http://www.w3.org/2000/svg">
<g p5:ItemType="Layer" id="Root">
<g id="Regions" p5:ItemType="Layer">
<g id="RU-MOS" style="fill: #B0B0B0; stroke: #000000; stroke-width: 1;">
<path d="M..." />
...
</g>
...
</g>
</g>
<p5:MetaInfo>
<p5:Geo>
<p5:GeoItem Longitude="..." Latitude="..." X="..." Y="..." />
...
</p5:Geo>
<p5:Attributes>
<p5:Attribute Name="ISO" Type="string">
<p5:Data Id="RU-MOS" Value="RU-MOS" />
...
</p5:Attribute>
...
</p5:Attributes>
</p5:MetaInfo>
</svg>
Specification determines the following elements used to create a topobase:
<svg>. A root element of the document that indicates SVG namespace.
<g>. Element of the root topobase layer, used to describe all the other layers.
<p5:MetaInfo>. This element contains metadata that refers to a specific topobase shape.
<p5:Geo>. This element contains information on shape binding to geographic coordinates.
<p5:Attributes>. This element contains custom metadata that refer to specific shapes.
The following specific attributes are used in elements descriptions:
| Attribute | Description |
| p5:ItemType | Determines element type. It is specified for a root element or layer. This attribute may be not specified for the displayed elements situated in the layer. This attribute may have the following string values: {“Layer”, "LinearLayer", “Item”}. Default value: “Item”. |
See also: