How to adjust the height map with a Combo Overlay: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
m (Rudolf@tygron.nl moved page How to adjust the height map with a combo overlay. to How to adjust the height map with a combo overlay without leaving a redirect: No full-stop after titles)
No edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
For some use-cases, especially related to [[Water Overlay|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.


It is now possibe to change the [[Digital Terrain Model Overlay|Digital Terrain Model (DTM)]] of a project, by using a [[Combo Overlay]].
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.


In the following example the roads of the project area will be lowered with 20cm - useful for e.g. simulating kerbs.
<youtube>wqpsp143LVM</youtube>


{{Editor steps|title=adjust the height map with a combo overlay.|Add a DTM Height Map Overlay to your project.|Add an [[Average Overlay]] that selects a specified attibute. This can be a custom attribute or a more general one, such as NWB_ID.|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).|This Combo Overlay displays a height map with all roads 20 cm lower, and all other areas as they were.|Now use the Combo overlay in Current Situation > Terrain > Select Elevation Grid Overlay to implement the change on the elevation model and visualisation.}}
{{editor location|terrain height}}
<br>
 
<gallery mode="nolines">
The modification described here will simulate kerbs of 20cm high, by lowering all roads by that amount.
File:Add_DTM_Overlay1.jpg|1. Add a DTM Height Map Overlay to your project.
 
File:Add_AVG_Overlay1.jpg|2.Add an Average Overlay that selects a specified attibute - NWB_ID.
{{Editor steps|title=adjust the height map with a combo overlay
File:Add_Combo_Overlay1.jpg|3. Add a Combo Overlay with the Height Map Overlay as input A, and the Avg Overlay as input B.
 
File:Combo_Overlay2.jpg|4. This Combo Overlay displays a height map with all roads (with NWB_ID as attribute) 20 cm lower, and all other areas as they were.
| Add a [[Digital Terrain Model Overlay]] to your project.
File:Add_Overlay_As_Terrain1.jpg|5 .Now use the Combo overlay in Current Situation > Terrain > Select Elevation Grid
| Add an [[Average Overlay]] that selects a specified [[attribute]]. This can be a custom attribute or a more general one, such as NWB_ID.
</gallery>
| 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).
| This Combo Overlay displays a height map with all roads 20 cm lower, and all other areas as they were.
| Go to Current Situation &rarr; Terrain &rarr; Select Elevation Grid Overlay
| Select the [[Combo Overlay]] and confirm the operation.
}}
 
{{gallery
|Add_DTM_Overlay1.jpg|Add a DTM Height Map Overlay to your project.
|Add_AVG_Overlay1.jpg|Add an Average Overlay that selects a specified attribute - NWB_ID.
|Add_Combo_Overlay1.jpg|Add a Combo Overlay with the Height Map Overlay as input A, and the Avg Overlay as input B.
|Combo_Overlay2.jpg|This Combo Overlay displays a height map with all roads (with NWB_ID as attribute) 20 cm lower, and all other areas as they were.
|Add_Overlay_As_Terrain1.jpg|Now use the Combo overlay in Current Situation &rarr; Terrain &rarr; Select Elevation Grid Overlay
}}
 
{{article end
|seealso=
* [[Height sector]]
* [[Elevation model]]
* [[Height map]]
|notes=
* This operation is considered irreversible. Changes to the [[elevation model]] overwrite the [[Height sector|terrain heights data]] directly. It is advised to create a [[Version Control|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.
}}

Latest revision as of 14:38, 1 February 2024

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