r/gis•
AboutATurtle

Length of roads inside buffer?

Student Question

I'm working on an analysis of road density and wildlife behavior for my thesis. I'm looking at how behavior is impacted by human influence, which I'm using roads within a 1200m radius as a proxy based on other papers in the field.

​

I have a shapefile of roads in the area. I made a buffer around my sighting points, and then clipped the roads. I'm struggling with how to find the sum of the roads within each buffer zone- the road shapefile consists of individual roads that I'll need to sum in an area, but I can't figure out how to select all roads within a buffer. This is complicated by the fact that some of the buffers overlap.

​

Any advice? Or am I going about this completely wrong?

Posted Oct 18, 2022, 4:56 PM UTC

28
Guero_Cabron•

Use the dissolve tool to combine all of the clipped roads into a single feature. If they aren't continuous, check the box to create multipart features. Assuming your shape file is using a projects sr, Your shape_len field will tell you the length.

2
suivid•

To add to this, they could intersect their lines with their buffers to return lines with their attributed buffer ID/Name. There will be a line feature representing the roads within each buffer. You can very easily use the shape_length field to get a length for each area if it is in the correct units.

4
Guero_Cabron•

If it's pro, you can just calculate the geometry. It lets you choose the unit of measure.

1
suivid•

On a new field, not the shape_length field. For clarification

1
1strideatatime•

How many sighting points are there? If there are not too many, you can go one by one. Depending on the program there should be a tool called select by location or something similar that will allow you to select all the road segments within one of the buffers

1
AboutATurtleOP•

I think that will work, thank you very much! Still a bit messy, but I have few enough distinct points (lots of sightings at the same points) that this will be doable in a reasonable amount of time.

1
ecotopia_•

People can probably provide a better idea of a workflow if you share what software you're using. In ArcGIS this is pretty trivial using Select by Location to select road segments within the buffer and then summarizing from the selection.

1
ac1dchylde•

What software are you using? There's a variety of ways to solve this problem. If you're using Pro, Summarize Within is all you need at this point. If you're using ArcMap, an Intersect with your buffers followed by a Summary Statistics with a Case field will do it. Or for that matter, as already suggested a select by location and then using summarize on the length field in the attribute table, though it depends on how many buffers you have and if you want to do a bunch of manual selection/calculation/notation.

1