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
| Parameter | Description | Notes |
|---|---|---|
| Input features | The line features to merge. | Usually line or multiline features. |
| Merge fields | Fields used for logical grouping before merging. | Only line segments with matching field values are merged. |
| Statistics | Statistical rules for attributes after merging. | Supports sum, mean, max, count, and more. |
| Geometry tolerance | The threshold for determining whether nodes are connected. | Default: 1e-6. |
| Output feature dataset | The merged output result. | Supports common vector formats. |
Steps
- Start the tool: Open the Geoprocessing Toolbox, go to Vector Tools > Feature Processing > Trim, and open the Unsplit Line tool pane.
- Set the input: Select Input features.
- Configure parameters: Select Merge fields and Statistics settings as needed, then adjust Geometry tolerance.
- Configure the output: Set the output path and file name.
- 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.