Difference between revisions of "QGIS Convert Lines to Points"

From Tuflow
Jump to navigation Jump to search
(Created page with "=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 a...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
=Introduction=
 
=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 a plugin is used.  The plugin is in the repository and is called MMQGIS, for more information on this plugin please see [http://michaelminn.com/linux/mmqgis/ http://michaelminn.com/linux/mmqgis/].
+
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/ http://michaelminn.com/linux/mmqgis/]), or the "Extract Nodes" functionality in the QGIS Geometry Tool.
=Method=
+
 
 +
=Method 1 - MMQGIS plugin=
 
<ol>
 
<ol>
 
<li>Ensure that the plugin has been loaded and that the line file is open.</li>
 
<li>Ensure that the plugin has been loaded and that the line file is open.</li>
<li>From the menu select ''Plugins >> mmqgis >> Modify >> Convert Geometry Type''.</li>
+
<li>From the menu select ''MMQGIS >> Modify >> Convert Geometry Type''.</li>
[[File:QGIS Lines to Points.jpg|500px]]
+
[[File:QGIS L2P 001.png|600px]]
 
<li>Set the following:<br>
 
<li>Set the following:<br>
 
* The source layer to be the line file you wish to convert
 
* The source layer to be the line file you wish to convert
Line 12: Line 13:
 
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.
 
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.
 
</ol>
 
</ol>
 +
 +
<br>
 +
 +
=Method 2 - QGIS Geometry Tool=
 +
<ol>
 +
<li>From the menu select ''Vector>> Geometry Tools>> Extract nodes''.</li>
 +
[[File:QGIS Lines to Points 002.png|400px]]
 +
<li>Set the following:<br>
 +
* 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.
 +
</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