Skip to content

Connect Lines

Summary

Search for a point on the nearest line for each input node.

Tags:
hydrography, graph, aggregate

Usage

If a line is found within the search distance, the line is splitted at the nearest point, and a new link is created between that node and the nearest point to connect lines together.

The created link is oriented from the existing node to the nearest line, though it may not be meaningful. You should fix link orientation with FixLinkOrientation.

Parameters

Parameter Description Type
Polylines
INPUT
Line network with identified nodes,
such as the output of `IdentifyNetworkNodes`
LineString
From Node Field
FROM_NODE_FIELD
Node identifier of first vertex
of each link in `INPUT`
Default value: NODEA
Numeric Field
To Node Field
TO_NODE_FIELD
Node identifier of last vertex
of each link in `INPUT`
Default value: NODEB
Numeric Field
Search Distance
SEARCH_DISTANCE
Maximum distance to search for a point on the nearest line
in order to connect an existing node.
Default value: 50.0
Distance
Connected Lines
OUTPUT
Line network with exta links added
to connect existing nodes to the nearest line.
LineString