
Road Centerline Extractor – New QGIS Plugin
Hi everyone,
I'd like to share a plugin I've been developing called Road Centerline Extractor, now available on the official QGIS Plugin Repository.
What it does
The plugin converts road polygon layers into centerlines, automating a process that is otherwise time-consuming when done manually. It is particularly useful for forest road inventories and rural road networks where roads are represented as polygons rather than lines.
Key features:
- Extracts centerlines from road polygon layers using Voronoi skeleton analysis
- Automatically segments the output at T-junctions and intersections, so each road section between two nodes is a separate feature ready for individual classification (primary, secondary, local, etc.)
- Joins centerlines across adjacent polygons that share a boundary, ensuring continuity along the road network
- Spur pruning to remove skeleton artefacts and noise
- Minimum road width filter
- Length reporting per segment in meters, kilometers, miles or feet
Why I built it
Existing QGIS tools can extract centerlines or calculate skeleton geometries, but none combine centerline extraction with automatic segmentation at junctions in a workflow focused on road polygons. The goal was to produce output that is immediately usable for road classification and length estimation without manual editing.
Installation
Search for Road Centerline Extractor in the QGIS Plugin Manager, or visit: https://plugins.qgis.org/plugins/road_centerline_plugin/
Feedback welcome
This is an early release and I'm actively looking to improve it. I'd love to hear from anyone working with road polygon data:
- Are there edge cases where the segmentation does not behave as expected?
- Would support for additional output formats or attributes be useful?
- Any performance issues with large datasets?
- Feature requests or workflow suggestions?
All feedback is appreciated. The source code is available on GitHub: https://github.com/Lyghtnyng/road-centerline-extractor