LiDAR analyses#
Classification (crates/ohl-lidar, classify), vegetation and as-built wires
(crates/ohl-clearance, vegetation and wirefit). All three are a base to
build on: the methods are simple, published and documented with their limits.
Classification#
Ground — a progressive morphological filter (K. Zhang, S.-C. Chen, D. Whitman, M.-L. Shyu, J. Yan, C. Zhang, "A progressive morphological filter for removing nonground measurements from airborne LIDAR data", IEEE Transactions on Geoscience and Remote Sensing 41(4), 2003):
- A grid of cell size \( c \) (1 m) holds the lowest point of each cell.
- The grid surface is opened — eroded (minimum filter) then dilated (maximum filter) — with square windows of \( w_k = 2r_k + 1 \) cells, \( r_k = 1, 2, 4, 8, \dots \) while \( w_k c \) is within the largest window (20 m). Opening removes objects smaller than the window.
- A cell whose lowest point stands above the opened surface by more than \( \Delta h_k = s\,(w_k - w_{k-1})\,c + \Delta h_0 \) (at most \( \Delta h_{max} \); \( \Delta h_0 \) for the first window; slope \( s \) = 0.3, \( \Delta h_0 \) = 0.3 m, \( \Delta h_{max} \) = 3 m) holds no ground; the opened surface is the input of the next window.
- The lowest points of the remaining cells make a TIN (no triangle sides above 50 m).
The minimum and maximum filters are separable (rows, then columns), so a window costs \( 2(2r+1) \) comparisons per cell. Empty cells are skipped.
Heights above the ground — every point to classify (by default classes 0 and 1; points already classified are kept) is measured above the TIN: within \( \pm \) 0.3 m it is ground (2); above, the first height band it falls in — ASPRS LAS 1.4 classes 3 (low vegetation, up to 0.5 m), 4 (medium, up to 2 m) and 5 (high, up to 60 m), all parameters — and above the last band high noise (18); below the ground, low noise (7). Buildings, poles and wires above the ground get vegetation classes too: telling them apart (planarity, linearity, returns) is not part of this base.
Ground by the progressive morphological filter, then the classes by height above the ground (heights not to scale).
Conservative: for the vegetation analysis, a building, pole or wire point classified as vegetation is checked as a tree: more points reported, none missed. Not for other rules: a building rule finds no point the classification gave to vegetation. Exact: a classification that tells them apart (or classes edited by hand).
Throughput (release build, one core): 4 million points over \( 10^6 \)
cells in 1.2 s, about 3 million points a second. Points are held in memory
(32 bytes each; --max-points, default 200 million); grids over
\( 10^8 \) cells are refused. Exit clauses: a time limit (30 minutes in
ohl lidar classify), checked per grid row and every \( 2^{20} \) points.
The result is written as LAS/LAZ 1.4 (point format 6) or stored as a new point cloud in the project file.
Vegetation#
For each wire (a span of a section) of a weather case — a hot case for sag, a windy one for blowout — every point of the vegetation classes (by role). Distances are to the conductor's surface, as every clearance (its radius, iced in a case with ice, and the polyline's bound off the distance to its axis: Clearance):
-
Encroaching: its radial distance to the wire (the nearest subconductor's surface) is below the required clearance plus the growth until the next cut, \( g = \text{growth per year} \times \text{years} \) — the tree grown by \( g \) in every direction.
Conservative: every point grows by \( g \) in every direction, also sideways and down, where trees mostly grow up and out at their tips. Exact: growth by species and direction (not modelled).
-
Fall-in: with the ground below it, a point of height \( h \) above the ground (at least 2 m) is taken as a tree top on a trunk straight below; falling about its base \( P_b \), the top sweeps a sphere of radius \( h + g \). The tree can reach the wire when \( \min_{q \in \text{wire}} |q - P_b| - r < h + g \) (\( r \): the conductor's radius and the polyline's bound); the margin is the difference. Leaning trees and crown widths are not modelled.
Simplification: a straight trunk below each point. A leaning tree falls further one way, and a crown's width adds to its reach; both reach further than computed (unsafe). Exact: the tree's stem and crown segmented from the points.
Per wire: the counts, the nearest point, the tree with the smallest fall-in margin, and the worst points by margin (the smaller of the clearance margin and the fall-in margin). this is the special case of the danger-tree check below (one case as it is, no root ball, no allowance, no buffer), with the same results; how the points meet the wires is described there (about 0.5 µs a point on one core).
Danger trees#
*Built, in active development (not approved yet). The two checks above are extended: trees falling about their root ball, the wire anywhere along its blowout swing, an unbalanced-ice case, and isoclearance lines. With the root-ball fraction, the clearance allowance and the buffer at 0 and no limit to a tree base's ground point the results are those of the section above, bit for bit.
Defaults (decided 2026-10-20; the same in the command line and the
desktop application): root-ball fraction \( k = 0.05 \), clearance
allowance \( A = 2 \) m, a ground point within 5 m of a tree base, a
50 m search distance (the half width of the corridor around the spans'
chords in which points are read). They are the utility practice; a
design-code plugin's preset may give others, and every one can be set
(\( k = 0 \), \( A = 0 \), no limit). Before 2026-10-20 the command
line's defaults were 0, 0, no limit and 60 m — its results with the
defaults change. Every distance is to the conductor's surface, as above. Code:
ohl_clearance::fall, ohl_clearance::positions,
ohl_clearance::vegetation, ohl_clearance::isoclearance. The window
in plain words, every setting and what is and is not conservative:
Vegetation and danger trees.*
Wire positions checked#
For each weather case chosen (up to a few hundred), each span of each section is solved by the line's own solver (finite elements). A case with wind is solved with the wind from the left and from the right. A case with its own wind at an angle θ (2026-11-16): from the right the wind from θ when it comes from the right half (0°–180°), else from 360° − θ, and from the left the other one — the direction and its mirror, as the views draw them; along the line (0°, 180°) once, its arc from still air to that blowout. Until 2026-11-16 both sides of such a case were the case as it is (only the side was set, which a wind at an angle does not read): its mirror was not checked — not on the safe side against the views. A case with its own direction across the line, or without one: unchanged (Wind on the line › Clearances and the views).
-
Hot / still air: the case's own position (a case without wind).
-
Blowout: the left and right positions (a case with wind).
-
Swing arc (optional): every position the span passes through between its left and its right blowout, through the still-air position (the case solved once more without wind, for the arc only). The span is taken to swing as one about its axis \( a \), the line through its two attachment points \( A_1, A_2 \) (string tops; at a dead-end, the clamp), unit vector \( \mathbf u = (A_2 - A_1)/|A_2 - A_1| \). As built, an attachment is the top of the one string hanging below it at a point inside the section; at the section's ends, two strings to one wire point or a wire fixed to the structure, the clamp (as solved in the case's first position; the string tops do not move). At a station \( s \) along the span (a fraction of its length), the wire's point lies in the plane square to \( \mathbf u \) at \( C(s) = A_1 + s,(A_2 - A_1) \): at angle \( \varphi_L(s) \) and radius \( R_L(s) \) blown to the left, \( \varphi_0(s), R_0(s) \) in still air, \( \varphi_R(s), R_R(s) \) blown to the right (angles about \( \mathbf u \) from the downward vertical, positive to the right). The "arc" at \( s \) is a band: the annular sector of centre \( C(s) \) from the smallest radius \( r(s) = \min(R_L, R_0, R_R) \) to the largest \( R(s) = \max(R_L, R_0, R_R) \), from \( \varphi_L \) to \( \varphi_R \) — the arc of before (at \( R \) only) filled in towards the axis down to \( r \).
The swing arc as a band about the attachment axis, widened by its margin \( m \) (schematic).
Levels (2026-11-16). The band also holds the span solved at intermediate pressures from each side at most \( s \) apart — \( n = \lceil P/s \rceil - 1 \) of them at \( k,P/(n + 1) \), \( k = 1 \ldots n \), each rounded to a whole 10 Pa (
positions::BandLevels::at), \( s = 200 \) Pa by default (BAND_SPACING; band level every … Pa in the vegetation panel, the clearance windows and the safety volumes;[wind] band_spacing;--band-spacing; saved runs record it; first, that day, a count a side with at least one every 200 Pa, still read as it asked): at each station the band runs from the smallest to the largest radius and angle of still air, the blowouts and every level (SwingArc::with_levels; between two stations the three positions' points interpolated as before and the levels' smallest and largest radius and angle linearly). Each level is one more solve a side, held by the band, not checked as a position itself; with the wind steps on, every step is a level too (no more solves).NOT ON THE SAFE SIDE without the levels (until 2026-11-16): the band of the three positions alone does not hold the wire at intermediate pressures in general — measured on a real line of 930 spans with 10 Pa steps from both sides, a step's centre line lay up to 0.23 m outside it at 500 Pa across the line, 0.49 m at 1000 Pa, 0.69 m at 1300 Pa (about 0.05 m per 100 Pa: the margin of 0.15 m held only up to about 390 Pa) and 0.82 m with the wind at 30°, on long deep-sag spans, spans from a dead end to an angle string and steep spans (Clearances › Wind positions). The example lines' 0.091 m (below) had made it look conservative. A run without levels (spacing 0), or with levels more than 200 Pa apart, says so in its results.
Conservative (measured): every radius and angle between the smallest and the largest of the solved positions, along the whole arc: a wind between none and the full one swings the wire to a radius and an angle between those of the levels around it, wherever the target is — below and beside the wire (vegetation, the ground) as well as between the axis and the arc (above the swinging wire). Until 2026-10-21 the arc took the largest radius only: a wire at an intermediate pressure passed up to 1.53 m nearer the axis (measured on the example line). Exact: a solve at every pressure.
Conservative (measured): the band is widened by a margin \( m \) on every side, 0.15 m by default (
positions::BAND_MARGIN; every distance to it taken \( m \) smaller, as if the conductor were that much thicker), because the band does not quite hold every intermediate position. \( m \) is a parameter: the default is the measured worst excess below plus an allowance, and the user may change it — in the vegetation panel, the clearance windows and the safety volumes (band margin), the rule file ([wind] band_margin) and the command line (--band-margin); saved runs record it. A smaller value than the default is less safe and on the user's responsibility. Measured (tests/arc_band.rs) on the example line and the crossing line, both windy example cases (600 Pa; 200 Pa with rime ice), steps of 10 Pa from both sides (1738 stepped positions): a step's centre line lies at most 0.009 m outside the band with the default levels (2026-11-16); without levels 0.091 m (S3's first span at 260 Pa, inside the inner radius: at mid-pressures the strings swing and the sag changes so the radius dips a little below the still-air one; 0.089 m when first measured on 2026-10-21), against 1.533 m from the arc alone at the largest radius (S1's second span at 420 Pa). On a real line of 930 spans (10 Pa steps from both sides, one side along the line: across the line as given at 300, 500, 650, 1000 and 1300 Pa, turned to 30° and 60° at 1000 Pa, along the line at 1000 and 1450 Pa, ice and wind at 700 Pa; measured 2026-11-16) at most 0.063 m with the default levels (across at 1000 Pa; at 1300 Pa 0.059 m with the six levels the 200 Pa spacing gives; 0.043 m at 30°, 0.051 m at 60°, along the line 0.023 m at 1000 Pa and 0.033 m at 1450 Pa besides the spans the wind pulls to their chord — 4 and 18, taken at their steps (below) —, ice and wind 0.027 m at 700 Pa), against 0.69 m without. The excess grows with the spacing of the solved pressures — about 0.3 mm per pascal, whatever the case's pressure (0.063 m at 200 Pa apart, 0.091 m at 260, 0.167 m at 433) — hence the setting is that spacing, 200 Pa by default (coarser: said NOT ON THE SAFE SIDE). It also takes 0.15 m off the clearances on the outer side, where the arc alone was already conservative (the price of one margin for every side). Exact: a solve at every pressure.Where the band does not apply (2026-11-16): a span whose solved positions or levels lie more than 0.1 m above the line between their own clamps, or are pulled towards it to less than half of still air's sag (a wind along an inclined span does so:
SwingArc::above_axis), or that has no band, is said in the results and also checked at its wind steps of 10 Pa from both sides (solved for that case when the steps are off). On the real line at 1450 Pa from ahead such spans lay up to 8.7 m outside their band.Jumpers: where jumpers are taken — the safety volumes, and the vertical and radial clearance checks for the rules that check jumpers (the danger-tree check leaves jumpers out) — each jumper with the swing arc on has a band of its own, as a span's: its positions blown left, in still air and blown right, about the axis through its two end clamps (as solved blown to the left, the first solve;
positions::jumper_band), from the smallest to the largest radius at each place, widened by a margin of its own \( m_j \) (the decision of 2026-10-21: separate from the spans' \( m \), 0 m by default, entered by the user — the jumper band margin beside the band margin in the clearance windows and the safety volumes,[wind] jumper_band_margin,--jumper-band-margin; saved runs record it). A jumper without a band (not solved blown to a side, or not running steadily along that axis) is taken at its solved positions, noted. Measured 2026-10-21 (tests/arc_band.rs) on the example line's jumper (the crossing line has none), both windy example cases, steps of 10 Pa from both sides (158 stepped positions): a step's centre line lies up to 0.293 m outside the jumper's band (high wind, blown right at 230 Pa, inside its inner radius: the dead-end clamps it hangs from move with the wind and its shape about the clamps' line changes), and 0.127 m in rime ice and wind; the arc alone at the largest radius misses them by up to 2.54 m. With the clamps' line through the still-air clamps instead, the excess was larger (0.375 m).NOT ON THE SAFE SIDE (the jumpers' margin, 0 m by default; said in the results; on the user's responsibility; exact: the wind steps): with \( m_j = 0 \) a jumper's band is not conservative between its solved positions — on the example line it misses the jumper by up to 0.307 m without levels and 0.18 m with the default levels; on a real line by up to 2.1 m without levels, and with the default levels up to 0.62 m since the jumpers are solved as the wind rises (1.9 m before: two jumpers solved in other shapes between 140 and 170 Pa; Jumpers). A jumper swings with its clamps and changes its shape about their line more than a span does, so no one value holds every line; the user enters a value for their jumpers (on the example line about 0.35 m would hold it with an allowance as the spans'), found with the wind steps. The hover text of the field quotes the measured excess.
Conservative: the arc runs from the smallest to the largest of \( \varphi_L, \varphi_0, \varphi_R \) (the still-air position need not lie between the two blowouts, e.g. at a line angle).
Simplification: a rigid swing about the axis through the attachment points. Suspension strings swing with the wire, and the clamps move on their own arcs, so the true locus is close to this one but not on it. Exact: a solve at each intermediate wind pressure.
The distance from a point \( q \) to the band of a span: project \( q \) on the axis, \( s_q = (q - A_1)\cdot\mathbf u / |A_2 - A_1| \) (clamped to [0, 1]); in the plane at \( s_q \), \( q \) is at radius \( \rho_q \) and angle \( \varphi_q \). With \( r, R, \varphi_L, \varphi_R \) interpolated at \( s_q \) from the stations either side: \[ d_{\text{arc}} = \begin{cases} \max(r - \rho_q,\ 0,\ \rho_q - R) & \varphi_L \le \varphi_q \le \varphi_R \ \min\big(d(q, E_L),\ d(q, E_R)\big) & \text{otherwise} \end{cases} \] — 0 inside the band, else to the nearer bounding surface — (\( E_L, E_R \): the band's end edges, the radial segments from \( r \) to \( R \) at \( \varphi_L \) and \( \varphi_R \)), and the clearance is \( d_{\text{arc}} - r_c - m \), \( r_c \) the conductor's radius and the polyline's bound as everywhere, \( m \) the band's margin.
As built: the stations are every point of the three solved wires (their places along the axis); between two stations each wire is one straight piece, so the three wires' points at \( s_q \) are interpolated (exact for the polylines) and \( R \) and the angles are worked out from them — the same as interpolating \( R \) and the angles, without the error of interpolating a radius. A point beyond the span's ends (\( s_q \) clamped) has its distance along the axis counted too: \( \sqrt{g^2 + a^2} \), \( g \) the radial gap above and \( a \) its distance from the end's plane. Conservative: for a bundle, \( r_c \) on the band is the bundle radius plus the subconductor's radius and the polyline's bound (the bundle's outer envelope), where the polylines take each subconductor.
-
Wind steps (optional): a windy case of full pressure \( P \) is also solved in still air and at every intermediate pressure \( p_k = k,\Delta p < P \) (\( \Delta p \) the step; at most 200 steps, the step made larger beyond), from the sides chosen (both, left or right; the full pressure is checked from both sides anyway) — the wind steps of the vertical and radial clearance windows (
WindSteps::pressures). Each is a position of its own (still,left (step),right (step), with its pressure), checked like the blowouts: alongside the swing arc or instead of it. Where the arc is a rigid swing over the band of radii between the two blowouts (a closed form, conservative), the steps are the solver's own positions at each pressure (strings and clamps where they really swing, the sag of each pressure), exact at the pressures solved but blind between two steps.The same arc (the same code) is, an option of the vertical and radial clearance checks, beside their wind steps; there its vertical distance is defined as well (Vertical and radial clearances), and the safety volumes take it too (Safety volumes): the band changes all three together.
Check by hand (
wind_steps_of_the_example_line): a wire hangs in the plane of its load, at \( \tan\varphi = q_w / q_g \) from the vertical about the chord between its clamps, with \( q_w = p,d \) proportional to the pressure, so \( \tan\varphi(p) / \tan\varphi(P) = p / P \): at \( P/3 \) and \( 2P/3 \) the solved positions give 0.333 and 0.667. -
Unbalanced ice (optional): the span checked carries more ice than its neighbours, so its suspension strings swing into it and it sags further. The span is solved in a weather case of its own and the section's other spans in the section's case — the section solver's weather case per span: a full weather case on that span (its temperature, its ice weight, the wind on its iced diameter, the ice and wind on the bodies on it, its iced surface radius).
As built: only the spans with vegetation points within reach (in plan, of the span's positions) are solved; each span and case with its section on its own, in parallel. The case's ice on that span only: the span in the case, the section's other spans in the case without its ice (the same temperature and wind); cases without ice are left out. More ice as a thickness \( \Delta t \): every span in the case, the span in the case with \( \Delta t \) more radial ice (a thickness grows by it; an ice load becomes the load of the ice out to the iced diameter plus \( 2\Delta t \), at the case's density or else glaze ice). More ice as a load \( \Delta w \) (N/m on each wire, each subconductor, as a weather case's ice load): every span in the case, the span in the case with its ice weight plus \( \Delta w \) as an ice load at the case's density (else glaze ice: the smallest iced diameter that weight can have). A concentrated load: the case as it is and the given load (N, the whole bundle's) at mid-span — a point load, the one mode not a weather case. A windy case is solved from the left and from the right, the span's own case with it.
Before 2026-10-20 the case's ice on one span was a weight spread along it with the wind on the bare diameter (a labelled simplification, now gone), and an extra load was the whole bundle's. On the example line (S1's second span, rime ice with wind) the iced span is now blown 7.3 m across its axis against 3.7 m before (6.0 m with ice on every span), its lowest point 0.67 m higher (the wind swings the sag sideways); without wind (glaze ice) it hangs 3 cm lower (the marker ball on it ices too).
Arc or steps: speed and quality#
Measured in the vertical and radial clearance checks, which share the arc and the steps with this check (Arc or steps, where the numbers are): three solves per windy case against 25 (50 Pa steps) or 131 (10 Pa) for 650 Pa; on an invented line of 600 spans the arc's solves take 1.3 s against 12 s and 56 s, and its point checks about a tenth of a microsecond to a microsecond a point against 2–18 µs.
- Why the arc is faster: three solves per windy case (left, still, right) instead of one per pressure and side, and one closed-form distance per point and span instead of one per position.
- What the arc gains: every angle between the blowouts, continuously (the steps are blind between two pressures), and every radius between the smallest and the largest of the three (Conservative, with its margin, for targets on every side since 2026-10-21; until then the largest radius only, not conservative for a target between the axis and the arc: 0.47 m at 300 Pa, up to 1.53 m over the steps, measured on the example line).
- What it simplifies: the rigid swing about the attachment axis (Simplification, above): suspension clamps move along the line and the sag changes with the pressure. The steps are exact at the pressures they solve; where a point is nearest the wire at an intermediate pressure they can be the more exact (and lower) value.
Grow-in#
A vegetation point \( q \) encroaches on a wire when its distance to the wire's surface, for any position checked above, is below the required clearance plus the allowances: \[ d(q, \text{wire}) - r < c_{\text{req}} + g + b \] with \( c_{\text{req}} \) the required clearance (flashover or minimum approach distance, by voltage, from the rule), \( g \) the growth until the next cut, \( b \) a buffer (e.g. for the survey's accuracy). The margin is the difference; the worst position (hot, left, right or on the arc) is reported.
As built: \( c_{\text{req}} \) is one distance or a
required clearance by voltage, as the clearance rules write it — a table "up to
kV → distance" (the first row whose voltage is not exceeded; above the
last row its distance, on the unsafe side: a warning in the report
names the spans, 2026-10-27 — extend the table) or \( c_0 + c_1 (U - U_0) \) above \( U_0 \) —
evaluated for each span at the nominal voltage \( U \) of its wire's
system (an earthed wire at 0 kV). The search reaches the largest of the
spans' distances. The fall-in allowance \( A \) takes the same forms.
Check by hand (the_clearance_by_the_voltage_of_each_wire): two level
wires of 220 and 380 kV, a point 8 m below each, the table 7 m up to
220 kV and 9 m up to 380 kV: the 380 kV wire's point grows in
(8 < 9), the 220 kV wire's does not (8 > 7).
Fall-in: a tree pivoting about its root ball#
A vegetation point \( q_t \) at height \( h \) above the ground below it (at least the smallest tree height) is taken as the top of a tree whose trunk stands straight below it, base \( B \) on the ground. Grown by \( g \), its height is \( h' = h + g \). The tree falls by turning about the edge of its root ball: a hinge \( H \) on the ground at the root-ball radius \( b_r = k,h' \) from the trunk, \( k \) a given fraction of the height (a user setting, default 0.05), on the side it falls to.
The tree base needs a ground point near it (optional,
max_base_ground_distance, e.g. 5 m): the ground's height below the
point — its base — is taken only when a point the terrain surface is built
from (a TIN vertex: a LiDAR ground point or a survey point) lies within
that horizontal distance; else the point has no base and no fall-in check,
and is counted as "no ground point within the distance" (with the points
that have no ground below them at all). It guards against a base
interpolated across a large gap in the ground points — a steep slope, a
hole under dense canopy — where the TIN's height may be metres off and the
tree's height with it. Simplification: such a point is left out of
the fall-in check rather than given a guessed height (it is reported, not
assumed safe: the count says how many). Default: 5 m (no limit when
none is given).
Questionable trees (decided 2026-11-11). A point without a base is not checked for fall-in: NOT ON THE SAFE SIDE — a real tree may stand there. So that none is silently unchecked, every such point from which a tree of the tallest height checked could reach a span is listed as questionable, with its place, the span it is near and the reason (no ground below it, or no ground point within the distance). "Could reach": its distance in plan from the span's swept volume (the capsule round the span's positions) is at most the fall reach of the tallest tree,
\[ d_{\text{plan}} \le k,h' + \sqrt{h'^2 + (k,h')^2} + A, \qquad h' = h_{\max} + g \]
(VegetationParams::fall_reach: the hinge at the root ball's edge
\( k,h' \) from the base, the trunk's top \( \sqrt{h'^2 + (k h')^2} \)
from the hinge, the allowance \( A \); \( g \) the growth). The distance
in plan is never more than the distance in space the fall-in check uses,
so the list holds every point the check would have looked at had it had a
base — conservative: it also holds low points that could not reach.
A point farther away cannot reach the wires at any height up to
\( h_{\max} \) and is only counted, as before. The list is neither a
finding nor a clearance: the panel's verdict is not green while it holds
a point. At most 10 000 are listed, the nearest to the wires; the count
is of all. With no ground surface at all no point has a base: said once,
nothing listed. The grow-in check of these points is unaffected (it
needs no ground). Tests:
points_without_a_tree_base_are_listed_as_questionable,
the_questionable_list_keeps_the_nearest.
It falls towards the wire point \( q \) (the worst direction). In the vertical plane through \( B \) and \( q \), with coordinates \( (x, z) \) from \( B \) (\( x \) towards \( q \), \( z \) up): \( H = (b_r, 0) \), the top \( T = (0, h') \), the trunk's length from the hinge \( L = \sqrt{h'^2 + b_r^2} \) and its starting angle about the hinge \( \theta_0 = \operatorname{atan2}(h', -b_r) \) (just over 90°). Falling, the trunk sweeps the sector of radius \( L \) about \( H \) from \( \theta_0 \) down to \( \theta_{\min} \), where it comes to rest on the ground: the largest angle, seen from \( H \), of the ground along the fall direction within reach, \[ \theta_{\min} = \max_{0 < u \le L} \operatorname{atan2}\big(z_g(b_r + u) - z_B,\ u\big) \] (\( z_g \): the ground's height along the direction; on level ground 0°, falling down a slope below 0°).
As built, \( \theta_{\min} \) is taken at every edge crossing of the ground's TIN along the direction (the profile from \( H \) to \( L \) beyond it): between crossings the ground is linear and its angle seen from \( H \) turns one way, so the largest is at a crossing — the TIN's resolution, exactly. Parts of the direction without ground (a hole) do not stop the trunk; with no ground at all, −90°. Conservative: where the ground is higher than the base (falling uphill), its angle is seen from \( B \) instead (\( u + b_r \) for \( u \)): seen from \( H \), at the base's height, rising ground just beyond it would stand at nearly 90° and stop the trunk at once; from \( B \) it rises at its slope. A smaller resting angle is a larger sector. With \( k = 0 \) the two are the same.
The ground stops the trunk — not conservative against a rule that
ignores the ground. A tool that
lets the trunk rotate on through the slope (as compared on a real line:
another program's falling trees found a wire 2.4 m below the trees'
bases, beside a steep slope) flags trees whose fall the ground would
stop. OpenOHL keeps the physical stop by default: a tree does not fall
through the ground. An option (off by default, the
trunk turns on through the ground; fall_through_ground) counts it as
such programs do: \( \theta_{\min} = -90° \) whatever the ground, the
trunk turning on down to straight below its hinge — on level ground
nothing changes (the wires are above it), below a steep slope more trees
are found.
With \( q = (\rho, \zeta) \) in that plane (\( \rho \) its horizontal distance from \( B \), \( \zeta \) its height above \( B \)) and \( \theta_q = \operatorname{atan2}(\zeta, \rho - b_r) \) its angle about \( H \), the distance from the wire point to the swept trunk is \[ d_{\text{fall}} = \begin{cases} |q - H| - L & \theta_{\min} \le \theta_q \le \theta_0 \ \min\big(d(q, [H, H + L e^{i\theta_{\min}}]),\ d(q, [H, T])\big) & \text{otherwise} \end{cases} \] The tree is a danger tree when, for some wire point and position, \[ d_{\text{fall}} - r < A \] with \( A \) the clearance allowance (flashover clearance, buffers; the growth is already in \( h' \)). The fall-in margin is the difference. With \( k = 0 \) and level ground this is the check above (a sphere of radius \( h' \) about the base), so the existing results are the special case.
A tree falling about its root ball: the sector swept by the trunk and the distance \( d_{\text{fall}} \) from a wire point (schematic, root ball enlarged).
Changed from the method as first written: within the sector the distance is \( |q - H| - L \), negative when the trunk passes beyond the wire point, where the method had \( \max(0, |q - H| - L) \). The verdict is the same; the margin also says by how much the tree reaches past the wire, as the margins before did (with \( k = 0 \) they are unchanged).
The smallest over the wire, as built. Within the sector, \( |q - H(q)| \) is the distance from \( q \) to the horizontal hinge circle of radius \( b_r \) about \( B \) (\( H(q) \) is its point towards \( q \)), so the smallest \( d_{\text{fall}} \) over a position is the distance between the position and that circle, less \( L \). To a solved wire it is found piece by piece: along a piece \( a + t,d \) the squared distance to the circle \( \varphi(t) = |q - B|^2 - 2 b_r \rho + b_r^2 \) has \( \varphi'' \ge 2|d|^2 (1 - b_r/\rho) \), convex wherever the piece stays further than \( b_r \) from the base in plan, and its one minimum is found by Newton steps inside a shrinking bracket to \( 10^{-12} \) of the piece (exact); a piece over the root ball (rare) by the bound of a distance to \( 10^{-6} \) m, the bound taken. To a swing arc it is the smallest of \( d_{\text{arc}} \) over the circle's points, by the bound of a distance along the circle (Piyavskii–Shubert: it changes by at most \( b_r \) per radian; the band's distance, 0 inside it, is a distance to a set and changes no faster than its point), to 1 mm. Conservative: on an arc the bound, at most 1 mm below the smallest distance, is taken. With \( k = 0 \) the circle is the base: the nearest wire point to the base, as before. Then the resting angle along the direction of that wire point, and the sector's test: within the angles, the margin is the circle's. Outside them (the nearest point below the trunk at rest — sheltered by a ridge — or above the root ball), the smallest of the "otherwise" distance along the wire, by the bound of a distance along the wire to 1 mm (the bound taken), and the other positions in the order of their circle margins. Simplification: in that search the distance is taken to change no faster than the wire point moves; the resting angle changes with the direction, so a sharp change of the ground across directions could be missed. Exact: the resting angle as a function of the direction. Conservative: on a swing arc the shelter is not credited (the circle's margin is kept).
Conservative: the tree falls straight towards each wire point, the worst direction for every point. Simplification: a straight trunk below the top point and no crown; the root ball as a hinge at a fixed fraction of the height. A leaning tree falls further one way and a crown reaches further than its trunk (unsafe; said in the report's warnings whenever fall-in is checked, 2026-11-08). Exact: the stem and crown segmented from the points, lean measured.
Isoclearance lines#
The clearance of a ground point \( G = (x, y, z_g(x, y)) \) is its distance to the nearest wire's surface over the positions checked: \[ c(x, y) = \min_{\text{cases, positions, wires}} \big(d(G, \text{wire}) - r\big) \] For one case, or the worst (smallest) over many. Isoclearance lines are its contours at a chosen interval (e.g. 1 m or 5 m), drawn over the corridor; lines above a chosen value can be hidden, so what remains shows where the ground or the vegetation comes closest. A tree of height \( h' \) standing inside the \( h' \) line can reach a wire when it falls (\( k = 0 \), level ground).
\( c \) is computed on a grid of the corridor (spacing \( \delta \), e.g. 1 m) and contoured by marching squares (the two-dimensional case of W. E. Lorensen and H. E. Cline, "Marching cubes: a high resolution 3D surface construction algorithm", Computer Graphics 21 (4), 1987, pp. 163–169) with linear interpolation between nodes (a saddle cell split by its centre's value).
Simplification: a contour is placed by linear interpolation between grid nodes; the values at the nodes are exact. As \( c \) changes by at most the distance moved along the ground (it is a distance: \( |c(G_1) - c(G_2)| \le |G_1 - G_2| \)), a contour is placed within \( \delta\sqrt{1 + m^2} \) of the true line (\( m \): the ground's slope). The contours are a drawing; the checks above use the exact distances.
As built: the corridor is the half width around the spans' chords (the
command's --corridor, the drawings' line width, the application's
corridor); the lines run from 0 at the interval up to the top line
("hide above", default 40 m). Clearances are worked out up to the top
line plus a coarse cell's diagonal times \( \sqrt{1 + m^2} \) with
\( m \) the ground's steepest triangle (beyond it a node is above every
line drawn, and so is every point of its cells). Simplification:
slopes above 5:1 (79°, TIN artefacts and cliffs) are taken as 5:1 in
these bounds, else a single near-vertical triangle would make the reach
huge; on such ground a coarse cell just above the top line could hold a
line and not be refined. Simplification: a
coarse cell with no corner inside the corridor (or on the ground) is left
out — a corridor narrower than a coarse cell could lose a line.
Results#
Per span: the number of grow-in and fall-in points, the worst of each (point, margin, the position and case, the wire), and the list of violating points; per line the totals. Shown in the 3D view, the plan and the profile (grow-in and fall-in as their own symbols and layers), in a cross-section across the span at a chosen point (the swing arc, the point, the fall sector), on the drawings, and as CSV.
As built: per span the counts (a point counted once per span, whatever its positions), the nearest point (the worst grow-in) and the worst falling tree with the case and position of each, and the worst points (default 10 per span) — in the command's table and CSV, and in the application's window. The application draws grow-in points (cyan dots joined to the wire) and danger trees (an orange trunk from base to top, a line to the wire point it falls to) on their own layers in the 3D view and the plan, and in the profile within the line width; the isoclearance lines on their layer in the 3D view and the plan, and on the drawings' plan (layer OHL_ISOCLEARANCE). Left for later: the check's points in the cross-section view (the application's cut panel does not show them yet).
the check also keeps every grow-in and fall-in point found (with the position each was found against and a tree's base), not only the worst; the application lists them in its CSV, draws them all (the grow-in points as dots, the danger trees as trunks, in the user's two colours; no line to the wire any more) while its panel is open, and saves them with a run in the performed checks. Drawing only: the plan and the profile mark one point a pixel, nothing computed is coarsened.
How it is made fast#
How the computation is made fast, with its measured times: Performance.
As-built wires#
Points of a span: points of the wire classes (roles conductor,
shield_wire) within a plan distance (1 m) of the vertical plane through
the modelled span's chord, within a height window (3 m) of the modelled wire
(still air, a chosen temperature), away from the ends by 5 % of the span.
Each becomes \( (s, z) \): horizontal distance along the chord from the
first clamp, and elevation. Bundle subconductors are fitted together.
Fit: the catenary in the plane,
\[ z(s) = z_0 + C\left[\cosh\frac{s - s_0}{C} - 1\right], \]
with low point \( (s_0, z_0) \) and catenary constant \( C = H/w \), by least squares on the vertical residuals. The start is a least-squares parabola \( z = a u^2 + b u + e \) (\( u \) centred on the mean \( s \)): \( C = 1/2a \), \( s_0 = \bar s - b/2a \), \( z_0 = e - b^2/4a \). Gauss–Newton steps with Levenberg–Marquardt damping (D. W. Marquardt, J. SIAM 11(2), 1963) on the Jacobian
\[ \frac{\partial z}{\partial C} = \cosh u - 1 - u\sinh u, \quad \frac{\partial z}{\partial s_0} = -\sinh u, \quad \frac{\partial z}{\partial z_0} = 1, \qquad u = \frac{s - s_0}{C} \]
until the step is below \( 10^{-10} C \) (about ten iterations; exit clause 500). Points further than three RMS (at least 5 cm) from the first fit are dropped (birds, other wires inside the window) and the fit repeated once.
Simplification: the span's points are taken in the vertical plane through its chord (still air at the survey). A wire blown sideways at the survey is fitted by its sag's vertical part, smaller than its true sag, so the temperature found is too low. Exact: a 3D catenary fit with the plane's swing as an unknown.
Sag of the fitted wire: the largest vertical distance below the chord from \( s = 0 \) to \( s = L \) — the model's definition. Where the curve is parallel to the chord, \( \sinh((s^* - s_0)/C) = m \) with \( m \) the chord's slope, so \( s^* = s_0 + C \operatorname{asinh} m \). Compared with the model: the sag difference, the height difference at mid-span and at the low point.
Temperature at the survey: the section is solved in still air at trial temperatures — with its stringing, creep condition and clamping as modelled — until the span's sag equals the fitted sag: regula falsi (Illinois variant) on \( \text{sag}(T) - D_{fit} \), increasing in \( T \), between −30 and 120 °C, to 0.01 °C or 0.1 mm of sag (about six solves; exit clause 60). Outside that range no temperature is given. The temperature is that of the model's sag–temperature relation: errors of the model (stringing tension, creep) show up as temperature.
Tests: a synthetic survey of the example line at 35 °C — points every
0.5 m along each span with ±3 cm noise, birds above the wires — gives every
span's sag within 2 cm and its temperature within 2 °C (in practice
±0.5 °C). Validation: wirefit-001…002 (exact points of known catenaries;
sag against a brute-force evaluation).