Automatic wire drawing
Extracts each span (each wire between two poles) from wire-class points as a separate 3D catenary curve, draws it as a layer and opens the span list.
In the app: Processing › Power lines › Automatic wire drawing…
What does it do?
A wire is assumed to hang in a vertical plane: dense wires are traced along their length, while sparse or stacked wires are separated by RANSAC with a straight strip in XY + a parabola in the vertical profile. A break at a pole or a point-free stretch longer than the largest gap ends the span; outliers such as birds and insulators are discarded, and parallel wires farther apart than the bundle spacing are drawn separately.
The result is drawn at once as the Low Voltage Wire / High Voltage Wire layers (Layers card) and the span list opens. No file is written until you choose Save…: DXF (3D POLYLINE), SHP (PolylineZ), GeoJSON. The drawing is not written to the session.
How to use it
- 1Open a cloud with classified wire points; if needed, limit the line with Tools → Area selection.
- 2Open Processing → Power lines → Automatic wire drawing…; choose the clouds and scope.
- 3Check the wire classes, layer names and span parameters, then click Extract wires.
- 4Check the spans in the list that opens, delete wrong ones, and write them with Save….
Parameters
| Setting | What it does | Default |
|---|---|---|
| Clouds | Clouds to take wire points from. | Visible clouds |
| Whole cloud / Selected area | Scope; Selected area is disabled when there is no selection. | Whole cloud |
| Low voltage wire / High voltage wire | Class list for each wire type; the same class cannot be selected for both types. | 24 / 25 |
| Layer names | Drawing / DXF layer name; cannot be empty or identical. | Low Voltage Wire / High Voltage Wire |
| Low voltage wires, High voltage wires | Types to draw; at least one. | Both on |
| Shortest span: | Shorter spans are discarded; 0.5–1000.0 m. | 5.0 m |
| Largest gap along the wire: | Longest point-free gap; if exceeded, the span ends there; 0.5–100.0 m. | 20.0 m |
| Bundle (parallel wire) spacing: | Parallel wires closer than this horizontally / vertically count as one wire; 0.05–5.00 m. | 0.25 m |
| Minimum points / span: | 3–100 000. | 10 |
| Line vertex spacing: | Densified if needed so the chord error stays within 2 cm; 0.05–50.00 m. | 1.00 m |
| Curve model: | Catenary, Parabola. | Catenary |
| Join spans meeting at a pole at a common attachment point | Neighboring spans meet at a single point at the pole. | On |
Outputs
- Low Voltage Wire / High Voltage Wire layers (in the Layers card)
- Span list: length, sag, points, RMS, model
- With Save…: DXF (3D POLYLINE), SHP (PolylineZ), GeoJSON
Tips
- For very sparse wires, increase the largest gap (e.g. 15–20 m).
- Where wires intertwine near a pole, delete the wrong curves from the list; narrow the bundle spacing if needed.
- If you name classes 24 / 25 in the Classes card, those names appear in the class lists.