How to create foliage height areas based on an Inference Overlay

From Tygron Preview Support Wiki
Jump to navigation Jump to search

First follow the how to: How to detect foliage using an Inference Overlay.

The following how to explains how to create foliage height areas using:

  • an Inference Overlay that identifies foliage.
  • an overlay that calculates the relative height; Combo overlay that subtracts DSM and DTM and a combo overlay to calculate tree heights,
  • and an iterated rasterization overlay that takes the max of its direct neighbors, if an only if it is part of an identified foliage.

The foliage height areas can be used as input for the Heat Overlay Foliage.

Foliage Height Overlay

Editor → Current Situation (Ribbon tab) → Overlays (Ribbon bar)
How to foliage height overlay:
  1. Add a Digital Terrain Model Overlay named Heightmap (DTM). In current situation, hover over Overlays, and under Topography, select Digital Terrain Model
  2. Add a WCS Overlay named Heightmap (DSM), based on the AHN4 or a similar DSM service; one that includes the height of objects on the surface.
  3. Add a Foliage Inference Overlay by following the wizard How to detect foliage using an Inference Overlay.
  4. Calculate these overlays, and then de-activate them.
  5. Add a Combo Overlay, named Foliage Height with the following prequels:
    • A: Heightmap (DSM)
    • B: Heightmap (DTM)
    • C: Inference Foliage
  6. Select the general tab in the detail panel, and provide the following formula using the formula field: IF(C, SUB(A, B), NO_DATA)
  7. Hover over the calculation cloud again, and now click update.


Enhanced Foliage Height Overlay

In the how-to above, the result mainly contain the branch heights.You can enhance this result by spreading the max height values to its neighbouring cells. With the iteration functionality, you can repeat this spreading multiple times within a single calculation.

Editor → Current Situation (Ribbon tab) → Overlays (Ribbon bar)
How to foliage height overlay:
  1. Follow the steps of the how-to above.
  2. Add an average Overlay, named Iterative Max Height, with configured input Grid: Input Overlay. Select the Foliage Height overlay for the Overlay and set the cell averaging distance to 2 times the grid cell size
  3. Select the Foliage Height Combo Overlay again, and select the Input Tab in its detail panel.
  4. For Grid D, check the Previous box, and select the Iterative Max Height overlay.
  5. Select the general tab in the detail panel, and provide the following formula using the formula field: IF(C, MAX(D, SUB(A, B)), NO_DATA)
  6. Just to make sure that the overlays Foliage Inference, Heightmap DTM and Heightmap DSM are deactivated.
  7. Hover over the calculation cloud in the upper left of the ribbon bar, and click on the hyperlink Iteration.
  8. In the input window that pops up, type 50 for iterations.
  9. Hover over the calculation cloud again, and now click update.
  10. Once ready, change back the iterations to 1.



Foliage Height Areas

The Combo Overlay Formula

On the Foliage Height Combo Overlay formula IF(C, MAX(D, SUB(A, B)), NO_DATA):

  • If the Foliage Inference Overlay has a value,
take the maximum of the D (the Iterative Max Overlay) or the relative height (subtracting DSM from DTM)
  • Otherwise, set it to NO_DATA.

The subtraction of the DSM and DTM part, can also be replaced by a more complicated (Combo) overlay.

Notes

  • For a grid cell size of 0.25m , the average overlay named Iterative Max Height should have a cell averaging distance of 0.5m.