Height above ground (HAG)
Finds the ground with a cloth simulation and stores the height of every point above the ground as the 'HAG' scalar field; can also set the ground points to class 2.
In the app: Processing › Geometry › Height above ground (HAG)…
What does it do?
The cloud is turned upside down and a flexible cloth dropped from above settles on the ground; points closer to the cloth than the classification threshold are ground. The height of every point above the ground surface becomes the HAG scalar field (m); places without ground, such as under buildings, are filled from the surroundings. Noise (7, 18) and deleted points are not used as ground.
Scene is the cloth stiffness: Steep slope (soft cloth that follows the terrain), Rugged terrain, Flat terrain (stiff cloth that does not sag under buildings and trees). Cloth resolution is the spacing of the cloth grid (small = detailed, slow; usually 2–4 times the point spacing). Slope processing sticks the cloth to the ground on steep slopes. Analyze data fills these parameters from the point spacing and terrain slope and shows its suggestion.
The HAG field is shown as color with View → Color → Scalar and exported with Processing → Geometry → Scalar fields. If a class change was chosen it is undone with Ctrl+Z; the source file changes only when you save (Ctrl+S).
How to use it
- 1Open Processing → Geometry → Height above ground (HAG)… and select the clouds.
- 2Press Analyze data; the suggested scene, resolution and threshold are filled in.
- 3Adjust the parameters by hand if needed.
- 4In the Result section choose what happens to the classes; click Calculate.
- 5When finished HAG is shown as color; inspect the result in Scalar color mode.
Parameters
| Setting | What it does | Default |
|---|---|---|
| Clouds | Clouds to compute. | Visible clouds |
| Scene: | Steep slope, Rugged terrain, Flat terrain | Rugged terrain |
| Cloth resolution: | Spacing of the cloth grid; 0.1–20 m. | 1.00 m |
| Maximum iterations: | Maximum number of simulation steps (stops early when settled); 10–5000. | 500 |
| Classification threshold: | Points closer to the cloth than this are ground; 0.01–10 m. | 0.50 m |
| Slope processing (stick the cloth to the ground on steep slopes) | Keeps the ground on steep terrain. | Off |
| Result | Do not touch the classes (HAG field only); Ground points → 2 (Ground); Ground → 2, others → 1 (Unclassified) | Do not touch the classes |
| When finished, show HAG as color | Switches to Scalar color mode at the end. | On |
Outputs
- HAG scalar field (m), stored in the cloud's cache
- Optional class change (ground 2, others 1); can be undone
Tips
- Start with Flat terrain for urban data and Steep slope for mountainous terrain, or rely on Analyze data.
- If roofs come out as ground, increase the cloth resolution; if slope crests are cut off, decrease it and turn on Slope processing.
- On an unclassified cloud it can also be used to create the ground class (2).
- The last values are remembered for the next time.
Image from the app
