I'm looking for a way or tool in QGIS that could create a mean line between two line features, from a line shapefile (not a polygon). See sketch image below for clarification.
Asked
Active
Viewed 1,399 times
4
1 Answers
7
Generic/algorithmic description
On one of the lines, create points in a regular interval. Connect these points to the closest point of the other line by creating a line. Get the centroid of these lines. Now connect the centroids to a line and you're done.
Implementation
Run the mentioned tools from Menu Processing > Toolbox:
Select one of the lines and run Points along geometry and be sure to check the box
Selected features only.On the created point layer, run Geometry by expression with this expression:
centroid( make_line ( $geometry, closest_point ( overlay_nearest ('line', $geometry, limit:=2)[1], -- replace `line` with the name of your line layer $geometry ) ) )Run Points to path to connect the points from step 2.
Kadir Şahbaz
- 76,800
- 56
- 247
- 389
Babel
- 71,072
- 14
- 78
- 208


I managed to get a solution by creating a polygon by hand/editing a then with the Skeleton function similar Babel mentioned above. But there must be an easier solution out there..
– Aurora Dec 15 '22 at 13:39