Road Line

class py123d.datatypes.map_objects.RoadLine[source]

Class representing a road line in a map.

Public Data Attributes:

layer

The MapLayer of the map object.

road_line_type

The type of road edge, according to RoadLineType.

Inherited from BaseMapLineObject

polyline

The polyline representation, either Polyline2D or Polyline3D.

polyline_2d

The polyline representation as Polyline2D.

polyline_3d

The polyline representation as Polyline3D (zero-padded to 3D if necessary).

shapely_linestring

The shapely LineString representation of the polyline.

Inherited from BaseMapObject

object_id

The unique identifier of the map object (unique within a map layer).

layer

The MapLayer of the map object.


property layer: MapLayer

The MapLayer of the map object.

property road_line_type: RoadLineType

The type of road edge, according to RoadLineType.

property object_id: str | int

The unique identifier of the map object (unique within a map layer).

property polyline: Polyline2D | Polyline3D

The polyline representation, either Polyline2D or Polyline3D.

property polyline_2d: Polyline2D

The polyline representation as Polyline2D.

property polyline_3d: Polyline3D

The polyline representation as Polyline3D (zero-padded to 3D if necessary).

property shapely_linestring: LineString

The shapely LineString representation of the polyline.

class py123d.datatypes.map_objects.RoadLineType[source]

Enum for different road line types.

Notes

The road line types follow the Argoverse 2 specification [1].

References

NONE = 0

No painted line is present.

UNKNOWN = 1

Unknown or unclassified painted line type.

DASH_SOLID_YELLOW = 2

Yellow line with dashed marking on one side and solid on the other.

DASH_SOLID_WHITE = 3

White line with dashed marking on one side and solid on the other.

DASHED_WHITE = 4

White dashed line marking.

DASHED_YELLOW = 5

Yellow dashed line marking.

DOUBLE_SOLID_YELLOW = 6

Double yellow solid line marking.

DOUBLE_SOLID_WHITE = 7

Double white solid line marking.

DOUBLE_DASH_YELLOW = 8

Double yellow dashed line marking.

DOUBLE_DASH_WHITE = 9

Double white dashed line marking.

SOLID_YELLOW = 10

Single solid yellow line marking.

SOLID_WHITE = 11

Single solid white line marking.

SOLID_DASH_WHITE = 12

Single solid white line with dashed marking on one side.

SOLID_DASH_YELLOW = 13

Single solid yellow line with dashed marking on one side.

SOLID_BLUE = 14

Single solid blue line marking.