Difference between revisions of "QGIS Convert Lines to Points"

From Tuflow
Jump to navigation Jump to search
 
Line 25: Line 25:
 
Click "Run" and the tool will create a new point file which contains all vertices along the line.
 
Click "Run" and the tool will create a new point file which contains all vertices along the line.
 
</ol>
 
</ol>
 +
<br>
 +
<br>
 +
{{Tips Navigation
 +
|uplink=[[QGIS_Tips | Back to QGIS Tips And Tricks]]
 +
}}

Latest revision as of 14:41, 22 June 2021

Introduction

There are a number of layers in TUFLOW, for example breaklines, which use both line and point inputs. This page describes the method for converting the vertices along a line to a separate point file. To perform this operation, you can either use MMQGIS plugin (for more information on this plugin please see http://michaelminn.com/linux/mmqgis/), or the "Extract Nodes" functionality in the QGIS Geometry Tool.

Method 1 - MMQGIS plugin

  1. Ensure that the plugin has been loaded and that the line file is open.
  2. From the menu select MMQGIS >> Modify >> Convert Geometry Type.
  3. QGIS L2P 001.png
  4. Set the following:
    • The source layer to be the line file you wish to convert
    • The new geometry type to Nodes
    • The output file
    The plugin will create a new point file which contains all vertices along the line. If you wish to create intermediate points along the line you will need to use an alternate plugin. A plugin called Profile from Line appears to do this.


Method 2 - QGIS Geometry Tool

  1. From the menu select Vector>> Geometry Tools>> Extract nodes.
  2. QGIS Lines to Points 002.png
  3. Set the following:
    • The source layer to be the line file you wish to convert
    • The output file name and location
    Click "Run" and the tool will create a new point file which contains all vertices along the line.



Up
Go-up.png Back to QGIS Tips And Tricks