Hi all,
I am currently working on a project in which I am modelling lava flows (using a plugin). I have run all eruption simulations but now want to add barriers/walls that would change the height of the DEM so I can assess mitigation strategies.
I have tried drawing polygons and lines and building mosaics but they haven't worked.
Is there a way of changing the height of certain pixels or drawing a polygon/line to make it part of the raster DEM?
Any advice/help is much appreciated!
- A
Check if this works.
1. Draw a line feature class representing the barrier (with Height_of_Barrier Field). I think you have done this step. Ensure the coordinate system of the line is same as that of the DEM Raster.
2. Convert Polyline to Raster. Use Snap Raster Option in Environment settings to the tool. Also define the same Cell_Size as the DEM Raster.
3. Using the Barrier Raster, convert all its NoData values to 0. (No need to do this step)
4. Use Raster Calculator to sum/add The Barrier Raster with the DEM Raster with the following expression.
Con(IsNull("Barrier_Ras"),"DEM_Ras",("Barrier_Ras"+"DEM_Ras"))
Thanks! Everything works apart from the last step. The resulting map shows only a tiny area around the barrier rather than the whole DEM
Try the following expression in Raster Calculator
Con("Barrier_Ras" > 0, ("Barrier_Ras" + "DEM_RAS"), "DEM_RAS")
The same is happening again. The DEM keeps disappearing and all that remains is a tiny area around the barriers
Would it work if I just converted my DEM to points and edited the points, then converted it back to raster?
Sorry for the delay. You could use the following expression in Raster Calculator.
Con(IsNull("Barrier_Ras"),"DEM_Ras",("Barrier_Ras"+"DEM_Ras"))
Also updated my original reply with all the steps.
The result is still only the small area around the barriers
Did you check my first reply. I eliminated step 3. It worked for me. I also added the DEM Raster to the Processing Extent (Environment setting of the tool- Raster Calculator)