XRoad VGP road alignment format

XRoad VGP horizontal and vertical alignment. If one file has multiple horizontal and/or vertical geometries, it is divided automatically into different files.

If the file contains only one road line, the file name is used directly. If there are multiple lines, each file is named by combination of values defined in lines TIE, TIEVE and LINJA. For example, file containing values TIE=mt147, TIEVE=ve1 and LINJA=or is named to mt147_ve1_or.vgp. Special setting RoadFlag can be used to force same naming rule for files containing only one road line.

Found single line id values are read to the attributes GROUP, NAME and VERSION. Writing writes them back to the file.

Road line code is read from the LINJA line. This code determines the line drawing using the code file and it is enabled by removing the default code 9100 from the converter settings.


Example

TIE         M907
TIEVE          1
LINJA       3303  6101005        .0000
ELEM       1       0   1       .0000       .0000     .0000
ELEMP1     1       .0000  6806340.1991  2488568.7885
ELEMP2     1     71.4976  6806363.0510  2488636.5358
ELEM       2       0   4       .0000   1000.0000  300.0000
ELEMP1     2     71.4976  6806363.0510  2488636.5358
ELEMP2     2    161.4976  6806390.5319  2488722.2291
ELEM       3       0   3   1000.0000   1000.0000     .0000
ELEMP1     3    161.4976  6806390.5319  2488722.2291
ELEMP2     3    296.3704  6806419.0070  2488853.9571
ELEMCP     3 6805429.5667 2488998.8987
ELEM       4       0   4   1000.0000       .0000  300.0000
ELEMP1     4    296.3704  6806419.0070  2488853.9571
ELEMP2     4    386.3704  6806429.3738  2488943.3499
ELEM       5       0   1       .0000       .0000     .0000
ELEMP1     5    386.3704  6806429.3738  2488943.3499
ELEMP2     5    906.3704  6806481.5220  2489460.7285
TIE         M907 
TIEVE          1
LINJAZ      3303       3303
ELEMZ      1       .0000    108.7500       .0000
ELEMZ      2     50.0000    109.3900  -5000.0000
ELEMZ      3    240.0000    114.1450   9000.0000
ELEMZ      4    690.0000    111.9000  -6000.0000
ELEMZ      5   1190.0000    121.3000      0.0000

Special settings

There are some special settings related to this converter.

RoadFlag

1 short name - Uses just LINJA setting for file name. In the example below normal name is M907_1_3303.vgp and short name 3303.vgp.

2 internal name - File name is combined from values in lines TIE, TIEVE and LINJA also for files containing only one road line.

See also: Common special settings