QGIS Convert Lines to Points: Difference between revisions

Content deleted Content added
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..."
 
No edit summary
Line 1:
=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, ayou plugincan iseither used.use TheMMQGIS 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/]), or the "Extract Nodes" functionality in the QGIS Geometry Tool.
 
=Method=
=Method 1 - MMQGIS plugin=
<ol>
<li>Ensure that the plugin has been loaded and that the line file is open.</li>
<li>From the menu select ''Plugins >> mmqgisMMQGIS >> Modify >> Convert Geometry Type''.</li>
[[File:QGIS LinesL2P to Points001.jpgpng|500px600px]]
<li>Set the following:<br>
* The source layer to be the line file you wish to convert
Line 11 ⟶ 12:
* 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.
</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>