RoadDirectionality Enumeration
Specifies the directionality of a road used by a TerrainAccessOperator or TerrainRouteOperator.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CEOperators assembly)
Syntax
public enum RoadDirectionality
Values
Value name | Value | Description |
---|---|---|
OneWayReversed | 0 | A one-way road, where the travel direction is the opposite of the node order in the road line geometry. |
OneWay | 1 | A one-way road, where the travel direction is the same as the node order in the road line geometry. |
TwoWay | 2 | A two-way road. |
Remarks
The value of the property TerrainAccessOperator.RoadDirectionality or TerrainRouteOperator.RoadDirectionality is normally an attribute variable that depends on road attributes; the attribute variable could use table lookup or an expression.
If it is enough to use a single road attribute, table lookup can be used. The following example should work for a road dataset from HERE:
![]() |
If two or more road attributes are needed, an expression must be used. The Expression Syntax for enumeration values is based on the C# naming as in the table lookup, but the expression syntax also requires a type name prefix. For example, let us imagine a road dataset where the directionality must be fetched from two boolean attributes: every road has a TWO_WAY attribute that can be True or False, and any road where TWO_WAY is False must also have a ONE_WAY_FORWARD attribute that can be True or False. Then you could write the following expression:
![]() |
Platforms
Windows, Linux, Android