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

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{being updated}}
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]].


In the following example the roads of the project area will be lowered with 20cm.
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.


{{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), NO_DATA).|This Combo Overlay displays a height map with all roads 2cm loewer, and all other areas as 'NO_DATA'.|}}
<youtube>wqpsp143LVM</youtube>


These steps can be created by using the "Editor steps" template:
{{editor location|terrain height}}


{{Template description|Editor steps|title&#61;title|Step|Step|Step...}}
The modification described here will simulate kerbs of 20cm high, by lowering all roads by that amount.


<gallery mode="nolines">
{{Editor steps|title=adjust the height map with a combo overlay
File:construction5.jpg|A landmark
 
File:construction6.jpg|Another landmark
| Add a [[Digital Terrain Model Overlay]] to your project.
</gallery>
| Add an [[Average Overlay]] that selects a specified [[attribute]]. 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.
| 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