Difference between revisions of "QGIS Extract CrossSections"

From Tuflow
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<ol>
 
 
== Extract Cross-Sections/Elevations from DEM to TUFLOW format .csv file.==
 
== Extract Cross-Sections/Elevations from DEM to TUFLOW format .csv file.==
 
Thanks to user Ben Throssell for submitting the following, much appreciated.
 
Thanks to user Ben Throssell for submitting the following, much appreciated.
 
<br>
 
<br>
 
To use QGIS to extract cross sections from your DEM the following method can be used.
 
To use QGIS to extract cross sections from your DEM the following method can be used.
 +
<ol>
 
<li>Draw your cross sections using the TUFLOW 1d_xs file, be sure to fill in the source column.</li>
 
<li>Draw your cross sections using the TUFLOW 1d_xs file, be sure to fill in the source column.</li>
<li>Install the QGIS plug-in "profile from line" (note you may also need to install shapely - see [http://osgeo-org.1560.n6.nabble.com/plugin-profile-from-line-td4133320.html http://osgeo-org.1560.n6.nabble.com/plugin-profile-from-line-td4133320.html]).</li>
+
<li>Install the QGIS plug-in "profile from line" (note you may also need to install shapely - see <u>[https://shapely.readthedocs.io/en/stable/installation.html https://shapely.readthedocs.io/en/stable/installation.html]</u>).</li>
 
<li>Run the plugin, it is pretty self explanatory, select your cross sections and dem, choose a suitable sampling interval. </li>
 
<li>Run the plugin, it is pretty self explanatory, select your cross sections and dem, choose a suitable sampling interval. </li>
 
<li> Upon running the plugin, QGIS will add a new points file to the workspace, save this as a .csv.  This file will contain the source of every cross section as well as the corresponding chainages and elevations.</li>
 
<li> Upon running the plugin, QGIS will add a new points file to the workspace, save this as a .csv.  This file will contain the source of every cross section as well as the corresponding chainages and elevations.</li>
<li>To split this data into individual .csv files in a format that TUFLOW can read in, download [[File:XSExtractor.xls]]</li>
+
<li>To split this data into individual .csv files in a format that TUFLOW can read in, download <u>[[File: XSExtractor.xls]]</u></li>
<li>Follow the instructions in the spreadsheet, after exporting to individual worksheets use the excel TUFLOW utilities "Export Entire Workbook to csv" to obtain all the cross sections in a TUFLOW format.  The TUFLOW excel utilities can be downloaded from [http://www.tuflow.com/ProductDownload.aspx the TUFLOW downloads page].
+
<li>Follow the instructions in the spreadsheet, after exporting to individual worksheets use the excel TUFLOW utilities "Export Entire Workbook to csv" to obtain all the cross sections in a TUFLOW format.  The TUFLOW excel utilities can be downloaded from the <u>[http://www.tuflow.com/ProductDownload.aspx TUFLOW downloads page]</u>.
 
<br>
 
<br>
 
Done!
 
Done!

Latest revision as of 12:08, 5 April 2024

Extract Cross-Sections/Elevations from DEM to TUFLOW format .csv file.

Thanks to user Ben Throssell for submitting the following, much appreciated.
To use QGIS to extract cross sections from your DEM the following method can be used.

  1. Draw your cross sections using the TUFLOW 1d_xs file, be sure to fill in the source column.
  2. Install the QGIS plug-in "profile from line" (note you may also need to install shapely - see https://shapely.readthedocs.io/en/stable/installation.html).
  3. Run the plugin, it is pretty self explanatory, select your cross sections and dem, choose a suitable sampling interval.
  4. Upon running the plugin, QGIS will add a new points file to the workspace, save this as a .csv. This file will contain the source of every cross section as well as the corresponding chainages and elevations.
  5. To split this data into individual .csv files in a format that TUFLOW can read in, download File:XSExtractor.xls
  6. Follow the instructions in the spreadsheet, after exporting to individual worksheets use the excel TUFLOW utilities "Export Entire Workbook to csv" to obtain all the cross sections in a TUFLOW format. The TUFLOW excel utilities can be downloaded from the TUFLOW downloads page.
    Done!



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