Difference between revisions of "QGIS TUFLOW Create Project"

From Tuflow
Jump to navigation Jump to search
(Created page with "This tool can be found in the TUFLOW >> Editing >> Configure / Create TUFLOW Project.<br> The tool serves two main purposes, it saves the location of your TUFLOW preferences, ...")
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This tool can be found in the TUFLOW >> Editing >> Configure / Create TUFLOW Project.<br>
+
The tool serves two main purposes, it saves the location of your TUFLOW preferences, it can also be used to create the TUFLOW folder structure and run a model to create the template (empty) GIS files.<br><br>
The tool serves two main purposes, it saves the location of your TUFLOW preferences, it can also be used to create the TUFLOW folder structure and run a model to create the template (empty) GIS files. The dialogue for the utility looks like the below:<br>
+
 
 +
===Running the Tool===
 +
The tool can be found under the QGIS menu '''Plugins >> TUFLOW >> Editing >> Configure / Create TUFLOW Project'''.<br>
 
[[File:QgisTuflow Configure Project.jpg]]
 
[[File:QgisTuflow Configure Project.jpg]]
  
=Saving Settings=
+
===Saving Settings===
 
This utility can be used to save the location of the following for a TUFLOW project:
 
This utility can be used to save the location of the following for a TUFLOW project:
 
* TUFLOW Model Projection
 
* TUFLOW Model Projection
Line 9: Line 11:
 
* The location of the TUFLOW executable
 
* The location of the TUFLOW executable
 
This information can be saved in two locations to the '''current project''' and '''global settings'''.  Each time the utility is run the project settings will be updated.  If the '''Save Default Settings Globally (for all projects)''' is checked, the default settings will be saved globally.  When subsequent tools are run, the settings are checked and if project specific settings are set these will be used, if no project specific data is set then the utilities will default to the global defaults.<br>
 
This information can be saved in two locations to the '''current project''' and '''global settings'''.  Each time the utility is run the project settings will be updated.  If the '''Save Default Settings Globally (for all projects)''' is checked, the default settings will be saved globally.  When subsequent tools are run, the settings are checked and if project specific settings are set these will be used, if no project specific data is set then the utilities will default to the global defaults.<br>
==Setting CRS==
+
===Setting CRS===
 
When setting the CRS ('''C'''oordinate '''R'''eference '''S'''ystem) there are two options:
 
When setting the CRS ('''C'''oordinate '''R'''eference '''S'''ystem) there are two options:
 
* Load these from an existing vector dataset in the layer control.  To do this, in the '''Source Projection Layer''' select the desired source layer.  When selected the CRS description and ID will update in the dialogue fields.
 
* Load these from an existing vector dataset in the layer control.  To do this, in the '''Source Projection Layer''' select the desired source layer.  When selected the CRS description and ID will update in the dialogue fields.
 
* By using the Coordinate Reference System Selector.  To open this hit the '''Select CRS''', the CRS selector will open as per the image below (click to enlarge):<br>
 
* By using the Coordinate Reference System Selector.  To open this hit the '''Select CRS''', the CRS selector will open as per the image below (click to enlarge):<br>
 
[[File:QgisTUFLOW CRS Selector.JPG|400px]]
 
[[File:QgisTUFLOW CRS Selector.JPG|400px]]
==Setting TUFLOW folder==
+
===Setting TUFLOW folder===
 
Select a TUFLOW folder for your model. This should be the folder that contains the entire TUFLOW model folder structure. For example, if your TUFLOW folder is "D:\projects\Example\TUFLOW", the folder set here should be “D:\projects\Example\”. All of the following tools will use this location.
 
Select a TUFLOW folder for your model. This should be the folder that contains the entire TUFLOW model folder structure. For example, if your TUFLOW folder is "D:\projects\Example\TUFLOW", the folder set here should be “D:\projects\Example\”. All of the following tools will use this location.
==Set the TUFLOW executable==
+
===Set the TUFLOW executable===
Select the '''Browse...''' option next to the TUFLOW executable display to bring up a dialogue and select the desired TUFLOW executable.  This needs to be downloaded from the TUFLOW website.
+
Select the '''Browse...''' option next to the TUFLOW executable display to bring up a dialogue and select the desired TUFLOW executable.  This needs to be downloaded from the TUFLOW website. The executable must match the TUFLOW Engine choice, for example if "TUFLOW Classic/HPC" is selected, then the executable must point to the appropriate executable (TUFLOW_iSP_w64.exe).
=Creating TUFLOW model=
+
===TUFLOW Engine===
If the '''Create TUFLOW Folder Structure''' check-box is enabled when the utility is run, a standard TUFLOW folder structure is created.  A shapefile is also saved to the TUFLOW\model\gis\ folder and a simple TUFLOW control file (.tcf) is created.  This .tcf file is in the TUFLOW\runs\ folder and is named '''Create_Empties.tcf'''.
+
Select the desired TUFLOW engine. This must match the executable selected in the above step.
=Run TUFLOW to create template files=
+
===GIS Format===
If the '''Run TUFLOW to create template files''' check-box is enabled a TUFLOW simulation is started with the '''Create_Empties.tcf''' as in the input file.  This simulation only has three commands:
+
''Available in v3.3''<br>
 +
Select the default GIS format used in the TUFLOW model. If creating empty files, the empty files will be output in this format along with the projection file. Using GPKG format is only compatible with TUFLOW Classic/HPC v2022 or later.
 +
===Creating TUFLOW Folder Structure===
 +
If the '''Create TUFLOW Folder Structure''' check-box is enabled when the utility is run, a standard TUFLOW folder structure is created (the structure also depends on the TUFLOW Engine selection).  A shapefile is also saved inside the TUFLOW folder. As an example, for TUFLOW Classic/HPC this is saved within the TUFLOW\model\gis\ folder and a simple TUFLOW control file (.tcf) is created.  This .tcf file is in the TUFLOW\runs\ folder and is named '''Create_Empties.tcf'''.
 +
===Run TUFLOW to create template files===
 +
If the '''Run TUFLOW to create template files''' check-box is enabled a TUFLOW simulation is started with the '''Create_Empties.tcf''' (or equivalent FVC) as in the input file.  This simulation only has three commands:
 
<pre>
 
<pre>
 
GIS FORMAT == SHP
 
GIS FORMAT == SHP
Line 27: Line 34:
 
Write Empty GIS Files == ..\model\gis\empty
 
Write Empty GIS Files == ..\model\gis\empty
 
</pre>
 
</pre>
When started this simulation will create a series of template files in the TUFLOW\model\gis\empty folder.  All of these template files have projection (CRS) as defined and have the correct GIS attributes for use in TUFLOW modelling.  This can be brought into QGIS using the [[QGIS_TUFLOW_Import_Empty | QGIS TUFLOW import empty]] plugin.
+
When started this simulation will create a series of template files in the TUFLOW\model\gis\empty folder (or TUFLOW FV equivalent).  All of these template files have projection (CRS) as defined and have the correct GIS attributes for use in TUFLOW modelling.  This can be brought into QGIS using the [[QGIS_TUFLOW_Import_Empty | QGIS TUFLOW import empty]] plugin.<Br>
 +
===Tutorial Model===
 +
Automatically sets the tutorial command inside the output TCF or FVC file when creating empty files. For TUFLOW Classic/HPC a license is not required to generate empty files therefore this option is only recommended if you are working through the free tutorial models. Some builds of TUFLOW FV do not support empty file creation without a license, however TUFLOW FV does support a free tutorial mode and so this option will allow users who are not currently connected to a license to create empty files.
 +
<Br>
 +
 
 +
<br>
 +
{{Tips Navigation
 +
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]
 +
}}

Latest revision as of 21:30, 5 April 2022

The tool serves two main purposes, it saves the location of your TUFLOW preferences, it can also be used to create the TUFLOW folder structure and run a model to create the template (empty) GIS files.

Running the Tool

The tool can be found under the QGIS menu Plugins >> TUFLOW >> Editing >> Configure / Create TUFLOW Project.
QgisTuflow Configure Project.jpg

Saving Settings

This utility can be used to save the location of the following for a TUFLOW project:

  • TUFLOW Model Projection
  • The parent folder that contains the TUFLOW model
  • The location of the TUFLOW executable

This information can be saved in two locations to the current project and global settings. Each time the utility is run the project settings will be updated. If the Save Default Settings Globally (for all projects) is checked, the default settings will be saved globally. When subsequent tools are run, the settings are checked and if project specific settings are set these will be used, if no project specific data is set then the utilities will default to the global defaults.

Setting CRS

When setting the CRS (Coordinate Reference System) there are two options:

  • Load these from an existing vector dataset in the layer control. To do this, in the Source Projection Layer select the desired source layer. When selected the CRS description and ID will update in the dialogue fields.
  • By using the Coordinate Reference System Selector. To open this hit the Select CRS, the CRS selector will open as per the image below (click to enlarge):

QgisTUFLOW CRS Selector.JPG

Setting TUFLOW folder

Select a TUFLOW folder for your model. This should be the folder that contains the entire TUFLOW model folder structure. For example, if your TUFLOW folder is "D:\projects\Example\TUFLOW", the folder set here should be “D:\projects\Example\”. All of the following tools will use this location.

Set the TUFLOW executable

Select the Browse... option next to the TUFLOW executable display to bring up a dialogue and select the desired TUFLOW executable. This needs to be downloaded from the TUFLOW website. The executable must match the TUFLOW Engine choice, for example if "TUFLOW Classic/HPC" is selected, then the executable must point to the appropriate executable (TUFLOW_iSP_w64.exe).

TUFLOW Engine

Select the desired TUFLOW engine. This must match the executable selected in the above step.

GIS Format

Available in v3.3
Select the default GIS format used in the TUFLOW model. If creating empty files, the empty files will be output in this format along with the projection file. Using GPKG format is only compatible with TUFLOW Classic/HPC v2022 or later.

Creating TUFLOW Folder Structure

If the Create TUFLOW Folder Structure check-box is enabled when the utility is run, a standard TUFLOW folder structure is created (the structure also depends on the TUFLOW Engine selection). A shapefile is also saved inside the TUFLOW folder. As an example, for TUFLOW Classic/HPC this is saved within the TUFLOW\model\gis\ folder and a simple TUFLOW control file (.tcf) is created. This .tcf file is in the TUFLOW\runs\ folder and is named Create_Empties.tcf.

Run TUFLOW to create template files

If the Run TUFLOW to create template files check-box is enabled a TUFLOW simulation is started with the Create_Empties.tcf (or equivalent FVC) as in the input file. This simulation only has three commands:

GIS FORMAT == SHP
SHP Projection == ..\model\gis\projection.prj
Write Empty GIS Files == ..\model\gis\empty

When started this simulation will create a series of template files in the TUFLOW\model\gis\empty folder (or TUFLOW FV equivalent). All of these template files have projection (CRS) as defined and have the correct GIS attributes for use in TUFLOW modelling. This can be brought into QGIS using the QGIS TUFLOW import empty plugin.

Tutorial Model

Automatically sets the tutorial command inside the output TCF or FVC file when creating empty files. For TUFLOW Classic/HPC a license is not required to generate empty files therefore this option is only recommended if you are working through the free tutorial models. Some builds of TUFLOW FV do not support empty file creation without a license, however TUFLOW FV does support a free tutorial mode and so this option will allow users who are not currently connected to a license to create empty files.


Up
Go-up.png Back to TUFLOW QGIS Plugin Main Page