Skip to content

Aggregate Undirected Lines

Summary

Merge connected undirected lines into a single linestring.

Tags:
graph, aggregate

Usage

Aggregate connected lines together, whatever the orientation of the input lines. The orientation of the resulting lines is not determined.

Singular nodes, having a degree greater than 2, are preserved. M and Z coordinates are preserved if present in the input dataset.

Optionally, the input lines are processed in separate subsets corresponding to the values in the category field.

Parameters

Parameter Description Type
Input linestrings
INPUT
Linestrings with identified nodes.
MutliLineStrings are not supported.
LineString(ZM)
Category Field
CATEGORY_FIELD (Optional)
Aggregate features by category defined in category field.
Field
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
Aggregated Lines
OUTPUT
Aggregated lines
with fields:
  • GID: new unique identifier
  • LENGTH: length of the aggregated line feature
  • $CATEGORY_FIELD: from INPUT
LineString(ZM)

See Also