TransWikia.com

Exporting points according to a route I made

Geographic Information Systems Asked by Byron on February 17, 2021

So I work on a ship and get given a shape file with points on it and I am required to make a vessel route out of this.

The problem is that once I have created a route between all the points and export them as a shape or csv, they are not arranged according to the route, but the way they were sent. I then have to manually arrange them in Excel.

For example: I am sent the points in order of A C D B and the route goes A B C D, however when exported it is still A C D B.

I assume I have to link the point and line feature somehow, but not sure how.

Software on the vessel is QGIS.

One Answer

  1. Extract vertices on route layer
  2. Join attributes by location to join the extracted vertices to the point layer
  3. Order by expression to order the output by the field vertex_index that was created in step 1
  4. Delete the fields not needed

If your route is not perfectly snapped to your points you might need to add a buffer step between step 1 and 2.

enter image description here

Correct answer by BERA on February 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP