Maptitude GISDK Help

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

Example

direction = GetDirection(1023)

 

 

©2025 Caliper Corporation www.caliper.com