How to adjust the height map with a Combo Overlay

From Tygron Support wiki
Jump to navigation Jump to search

For some use-cases, especially related to hydrological calculations, it can be important to have a well-defined height map. When a grid-dataset exists which defines exact heights on the desired reoslution, it is trivial to load in that data. However, sometimes some additional calculations are desired to create or refine the required adjustments.

For these situations, it is possible to use a Grid Overlay to redefine the elevation model in a Project. This is an operation which effects a one-time change of the elevation model, by taking the data of the indicated Overlay and adjusting the elevation model accordingly.


The modification described here will simulate kerbs of 20cm high, by lowering all roads by that amount.

How to adjust the height map with a combo overlay:
  1. Add a Digital Terrain Model Overlay to your project.
  2. Add an Average Overlay that selects a specified attribute. This can be a custom attribute or a more general one, such as NWB_ID.
  3. Add a Combo Overlay with the Height Map Overlay as input A, the Avg Overlay as input B, and with the formula: IF(GT(B, 0), SUB(A, 0.2), A).
  4. This Combo Overlay displays a height map with all roads 20 cm lower, and all other areas as they were.
  5. Go to Current Situation → Terrain → Select Elevation Grid Overlay
  6. Select the Combo Overlay and confirm the operation.



Notes

  • This operation is considered irreversible. Changes to the elevation model overwrite the terrain heights data directly. It is advised to create a new version if you ever want to revert back to the original elevation model.
  • The effected change is a single operation, not a permanent connection. After performing this operation, if the results of the used Grid Overlay change, the Project's elevation model is not modified automatically.

See also