0

In QGIS 3.22.2 I have used the ORS distribution calculation tool to work out the number of vehicles that go from one origin to multiple destinations. I am trying to represent this number as a line width of the sum of the number of persons expected to travel along the route.

I have used the graduated symbology with the set width but this only shows the largest line not the sum of the overlapping lines.

I there a way to do this?

enter image description here

Taras
  • 32,823
  • 4
  • 66
  • 137
Paul S
  • 1
  • i.e. sum("NumsPerson", group_by:=geom_to_wkt($geometry)) (and also maybe brake lines before into linestrings) – Taras May 11 '22 at 08:53
  • Dissolve your route network. Then use split lines at points with your dissolve network and either manually set points, or the extracted vertices. Make sure every line segment has a unique ID. Join attributes by location from your original data to your split lines, while allowing one-to-many joins. Finally run the following through the field calculator: sum("passenger numbers",group_by:="ID of the line segments"). This sums up the number of passengers along the current line segment. Different from the linked question this works with partly overlapping features. – Erik May 11 '22 at 08:54
  • After a breif experiment this morning, i have to tip my hat to Erik, it looks like your idea worked perfectly. Thank you!!! – Paul S May 11 '22 at 10:58

0 Answers0