Extract Polyline Statistics in relation in Raster

398
4
11-21-2020 02:00 PM
EliPetersonFS
New Contributor

I am attempting to calculate what distance of a polyline is in a specific raster value. I cannot find a great tool to do this with. One way I believe I could do this is to make a different raster file for each raster value then clip the polylines to that new raster file and measure it. this would split all the roads up and would be very time consuming. Any great ideas?

 

Context: 

I am attempting to identify roads at increased land/mudslide risk post wildfire. The raster values are a raster calculation between NBR and slope. I would like to be able to confidently say something like "FS road ### has 120m of road at high risk for landslide and 540m at moderate risk".

4 Replies
DavidPike
MVP Regular Contributor

I think you could quite easily iterate over each polyline (road) and jury-rig the stack profile tool

https://desktop.arcgis.com/en/arcmap/latest/tools/3d-analyst-toolbox/stack-profile.htm

then do some magic on the output table for each road.

 

Reply
0 Kudos
EliPetersonFS
New Contributor

Thank you for the suggestion

Hmm been exploring the stack profile tool now for a little while and cannot get it to produce anything beneficial for my needs.

 

What I need is to be able to identify which of these roads go through red sections, then quantify and identify those locations in red. (see image)

Reply
0 Kudos
DavidPike
MVP Regular Contributor

Seemed to work fine.3dstack.png

Reply
0 Kudos
PetronilaMandeno
Occasional Contributor

I have almost the same question!

My idea was to create points along the line, extract the values from the raster to the point, and then spatial join the points to segmented portions (regular intervals) of the line.

But I need an average of the raster value around each point (since the roads are already represented in the raster and a value under the point themselves would just return 0).

Reply
0 Kudos