9.3 Straight line

A straight line is the simplest geometry element.

img
Figure 26. A straight line

Figure 26 shows the concept of a straight line. A <geometry> element that forms a straight line contains the @s, @x, @y, @length, and @hdg attributes and one empty <line> element.

Elements in UML model

<line> element

In ASAM OpenDRIVE, a straight line is represented by the <line> element within the <geometry> element.

UML class: t_road_planView_geometry_line
XML tag:   <line>

A straight line is the simplest geometry element. It contains no further attributes.

XML example

<planView>
    <geometry s="0.0000000000000000e+00"
              x="-4.7170752711170401e+01"
              y="7.2847983820912710e-01"
              hdg="6.5477882613167993e-01"
              length="5.7280000000000000e+01">
        <line/>
    </geometry>
</planView>

Related topics