Select to view content in your preferred language

Adding a barrier with height on a Raster DEM

1977
8
06-12-2017 04:42 AM
AlexRepole
Deactivated User

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

8 Replies
JayantaPoddar
MVP Esteemed Contributor

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"))



Think Location
AlexRepole
Deactivated User

Thanks! Everything works apart from the last step. The resulting map shows only a tiny area around the barrier rather than the whole DEM

JayantaPoddar
MVP Esteemed Contributor

Try the following expression in Raster Calculator

Con("Barrier_Ras" > 0, ("Barrier_Ras" + "DEM_RAS"), "DEM_RAS")



Think Location
0 Kudos
AlexRepole
Deactivated User

The same is happening again. The DEM keeps disappearing and all that remains is a tiny area around the barriers

0 Kudos
AlexRepole
Deactivated User

Would it work if I just converted my DEM to points and edited the points, then converted it back to raster?

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

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.



Think Location
0 Kudos
AlexRepole
Deactivated User

The result is still only the small area around the barriers

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

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)



Think Location
0 Kudos