Skip to content

Aggregate Stream Segments

Summary

Merge connected stream segments.

Tags:
hydrography, graph, aggregate

Usage

Aggregate connected segments together. Singular nodes, having in- or out-degree greater than 2 such as confluences, 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
Stream network with identified nodes, oriented from upstream to downstream.
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
  • $FROM_NODE_FIELD: from INPUT
  • $TO_NODE_FIELD: from INPUT
LineString(ZM)

See Also