Egej Vencelj Senior software engineer

Work / Wires and towers measured from 3D scans

Wires and towers measured from 3D scans

About 8,500 lines of my code trace every wire in Panarch's 3D laser scans as one clean 3D line. My bachelor's thesis measures how far a tower leans from the same scans, and Panarch still uses it.

What you see. Each orange dot is a point a laser scanner measured on a power-line wire. Step through to watch the code turn the scattered dots into one clean 3D line per wire.

Try it yourself

Wire points from a public LiDAR tile, each conductor in its own colour, with the fitted 3D lines.
Fig. 1 Wire points from a public LiDAR tile, each conductor in its own colour, with the fitted 3D lines.

What the real one does

From 3D laser scans (LiDAR), my code draws one clean 3D line per wire in each span, the stretch between two towers. It also measures how far a lattice tower leans. The wire part is about 8,500 lines of original code in the QGIS suite, written between 2018 and 2024. The tower part started as my bachelor's thesis in 2019 and is still in production today.

How the demo works

The corridor is the same one as in the point-cloud demo: two transmission lines near Senožeče, side by side.

A wire is easy to see and awkward to measure. Its points thin out over trees, the wires on one tower hang only a few metres apart, and a first pass always gives you pieces. So the method here takes two steps.

In each span it picks three points many times over and fits a parabola along the line and a straight line in plan through them. It keeps the curve that most points agree with. Then it grows each curve over the full survey, taking every point within 50 cm of it, whatever class the survey gave that point. It refits until the curve stops changing.

On this tile that gives 11 wires, most of them running from tower to tower, with fit errors of 10 to 25 cm. About 5 % of the points stay unassigned. Over a span this short a parabola is close enough to a hanging cable, while a production tool fits the catenary and joins spans across the towers.

Pylon verticality: how far a tower leans

My bachelor's thesis measured how far a steel lattice tower leans from a 3D laser scan, and Panarch still uses it.

A public LiDAR scan around a 220 kV tower, with the ground segmented and the tower standing out in orange.
Fig. 2 A public LiDAR scan around a 220 kV tower, with the ground segmented and the tower standing out in orange.

A 3D laser scan around one real tower. Step through to find the ground, cut out the tower and measure how far it leans.

Everything starts with the ground. Until you know where the ground is, a tree, a tower and a hillside are the same thing: points with a height. The filter here, a progressive morphological filter, takes the lowest point in each 1 m cell, then opens that surface with windows of 3, 5, 9 and 17 m. Whatever sticks up more than the terrain's slope allows is not ground. It runs in your browser in a fraction of a second, and it agrees closely with the ground class the survey shipped with.

Once the ground is known, height above ground separates everything else: low vegetation, trees, wires and the tower. The tower is then a column of points more than 2 m up at the tower's position.

A lattice tower is symmetric, so the middle of its legs at any height lies on its axis. Cut the body into 1 m slices, take the middle of each slice's footprint between the 5th and 95th percentiles, and fit a straight line through those middles. The angle to the vertical is the lean. The test bench shows how the estimate degrades. Lower density or more noise costs a little, and a scanner that sees only one side costs a lot.