QGIS TUFLOW Styles: Difference between revisions

Content deleted Content added
Created page with "=Introduction= When outputting GIS files in the shapefile format, no styling information is (or can be included). For example when viewing a Check_Files_2d_zsh_zpt | _zsh_z..."
 
No edit summary
Line 42:
[[File:QGIS TUFLOW Import Check from folder 02.png]]
=Overwriting Style Templates=
When running these tools above, the following steps are performed:
* The names of all the .qml style files are loaded in from the '''QGIS_Styles''' folder under the installation directory.
* These files are sorted based on longest filename 1st. For example the tool will search for '''_zsh_zpt_check_P''' before '''_zpt_check_P'''.
* For each layer (depending on the method above), the utility check if the style layer name is in the layer name. For example if '''_zsh_zpt_check_P''' is found in the layer name '''M04_5m_001_zpt_check_P''', the layer will get this styling applied.
The logic above has been designed to allow the user to modify the symbology for a selected layer or add symbology for an additional layer. This can be done by creating a custom symbology in the QGIS Styles dialogue. Once the preferred symbology has been created, the '''Style >>> Save Style >> QGIS Layer Style File''' can be used to save this as a QGIS .qml file. These steps are outlined in the image below.<br>
<br>
[[File:QGIS TUFLOW CheckFile Custom Symbology 01.png]]<br>
<br>
This .qml file can be saved in the QGIS_Style folder, for example to overwrite the _zsh_zpt_check_P.qml symbology, this file would be saved as per the below.<br>
[[File:QGIS TUFLOW CheckFile Custom Symbology 02.png]]
This same process could be used to add additional functionality, for example no _hydroprop_check_L template is provided, but one could be created to style this based on one of the attributes in the GIS layer (such as Channel type, Manning's n, conveyance etc.)