GetDirection()

Summary

Gets the contents of the direction field for a line feature.

Syntax

direction = GetDirection(integer line_ id)

Argument Contents
line_ id ID of a line

Returns

An integer indicating the direction of flow:

Value Direction of Flow
-1 One-way in the opposite direction from which the coordinates of the line feature are stored (reverse topological direction)
0 Two-way
1 One-way in the same direction in which the coordinates of the line feature are stored (topological direction)

Notes

  • The current layer must be a line layer.

Example

direction = GetDirection(1023)