I have a polygon layer that represents sub-catchments and a line layer that represents a stream network. There is exactly one feature in the line layer for each polygon. I have used v.rast.stats to calculate the average slope for each line feature.

Now I would like to transfer this attribute to the polygon layer. In other words, the polygon layer should receive information about the average flow gradient in each feature. How can this be done?

Here is a screenshot:

enter image description here

The red lines are the line layer, the white lines are the boundaries of the polygons and in the background is the slope grid.

  • 2
    Look at a spatial join.
    – John
    Commented May 5 at 10:23

1 Answer 1


I did it with Join attributes by location. For join to features I used the Polygon layer, features they (geometric predicate) intersect, by comparing to the Line Layer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.