By wallace camelo


2019-04-14 01:01:32 8 Comments

I made two river bank lines and I want to associate them.

Example_1

I want to make a centerline using two rows as a base. I managed to make the centre line with a lot of work creating several lines from one margin to the other of the river and then using the centroid, but this solution is very tiring and I have to do this in several areas.

Example_2

3 comments

@Cyril 2019-04-14 09:47:15

The surest method for solving your question from the point of view of the cartographic approach is to use the Voronoi Polygons.

I offer one of the solutions to your question using QGIS tools.

So, the initial data is a river as an areal object, see the figure below. enter image description here

2) Vector > Geometry processing > Convert polygons into lines, see image below enter image description here

3) Open the closed line QGIS "Split Features" tool and run the GRASS v.split tool, so that the points are evenly distributed along the line and run the Vector> Geometry Processing> Voronoi Polygons tool on them, see the figure below

enter image description here

or run the plugin with the name in the screenshot below, which is more convenient ... enter image description here

4) Cut the original Voronoi polygons from the result with Vector > Geoprocessing > Trim and then select only one half of the river area, see the picture below using the Ctrl key and the selection tool enter image description here more Vector > Geoprocessing > Merge by grounds ... > By all indications.

enter image description here

enter image description here

5) Cut from the source layer the result of the selected left or the right area, see the picture below.

enter image description here

6) Then from the result of cutting create a line, blow it up, remove unnecessary parts and leave the centre line of the river, see figure below enter image description here

This is the main approach to solving your question and it is clear that a variety of tools allows you to solve your question in various ways, but the idea remains the same, good luck ...

@csk 2019-04-15 17:30:05

The HCMGIS plugin says it does this:

Spatial Processing: Create Skeleton/Medial Axis/ Centerline for road/ river networks and similar linear structures

@wfgeo 2019-04-14 11:44:20

Try the GRASS algorithm v.centerline. You may have to tweak around with the parameters, but as long as your river polygons are longer than they are wide it should work for a large portion of your inputs.

@MrXsquared 2019-04-14 14:21:38

Can you explain how to use it in QGIS?

@wfgeo 2019-04-14 14:45:07

@MrXsquared I am actually now surprised to find that this tool is not accessible from the Geoprocessing toolbox, so I guess my answer is not that appropriate to the question.

Related Questions

Sponsored Content

2 Answered Questions

2 Answered Questions

[SOLVED] Finding which side of closest polyline point lies on in QGIS?

  • 2018-09-07 09:38:51
  • radouxju
  • 182 View
  • 6 Score
  • 2 Answer
  • Tags:   qgis line qgis-3

1 Answered Questions

[SOLVED] Create centerline from multi-digitized roadway lines Qgis 2.18

  • 2018-09-28 17:42:24
  • brink
  • 391 View
  • 3 Score
  • 1 Answer
  • Tags:   qgis

1 Answered Questions

[SOLVED] clipping layer using query builder in QGIS

  • 2018-07-06 11:41:56
  • Lisa
  • 115 View
  • 4 Score
  • 1 Answer
  • Tags:   qgis clip query

0 Answered Questions

Shortest path creation between two lines

1 Answered Questions

[SOLVED] QGIS Interpolation on Curved Grid (River DEMs)

1 Answered Questions

[SOLVED] How to create automatic parking bays

  • 2016-01-27 16:24:38
  • Carlos
  • 351 View
  • 2 Score
  • 1 Answer
  • Tags:   qgis

0 Answered Questions

how to make decent sense from scattered river depth measurements

1 Answered Questions

0 Answered Questions

Centroid of the equator and a point

Sponsored Content