Aller au contenu principal

Unsplit Line

Overview

The Unsplit Line tool merges multiple line segments whose endpoints are connected in geographic space within the specified tolerance into a single continuous line feature. You can specify grouping fields so that only line segments in specific categories are merged, and you can calculate statistics for attributes after merging.

Use Cases

  • Basic geospatial data cleanup: Merge fragmented road lines or river branch segments by road name or river code.
  • Topology optimization: Reduce redundant nodes and over-split line segments before building transportation networks or utility network models.
  • Statistical analysis: Calculate total length or average traffic volume for each merged road segment while merging lines.

Parameters

ParameterDescriptionNotes
Input featuresThe line features to merge.Usually line or multiline features.
Merge fieldsFields used for logical grouping before merging.Only line segments with matching field values are merged.
StatisticsStatistical rules for attributes after merging.Supports sum, mean, max, count, and more.
Geometry toleranceThe threshold for determining whether nodes are connected.Default: 1e-6.
Output feature datasetThe merged output result.Supports common vector formats.

Steps

  1. Start the tool: Open the Geoprocessing Toolbox, go to Vector Tools > Feature Processing > Trim, and open the Unsplit Line tool pane.
  2. Set the input: Select Input features.
  3. Configure parameters: Select Merge fields and Statistics settings as needed, then adjust Geometry tolerance.
  4. Configure the output: Set the output path and file name.
  5. Run the tool: Click Run and review the result.

Notes

  • Only line segments whose geometry endpoints are truly connected within the specified Geometry tolerance are merged.
  • Leaving Merge fields empty means the tool attempts geometry-based merging for all lines without considering attribute differences.
  • Complex three-way or four-way intersections are not automatically fused by this tool. The connection must be endpoint to endpoint. A projected coordinate system is recommended for processing.