QGIS TUFLOW Increment Layer: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
As the name implies, thisThis tool takes the active layer (as selected in the layer control) and saves a copy of this with a new filename. TheBy default the currently open file will be closed and the new version opened, thishowever avoidsthere accidentallyis modifyingthe option to keep both versions open in the supersededworkspace. version!The new layer will adopt the same styling as the old layer.<br>
This tool can be found in the '''TUFLOW >> Editing >> Increment Selected Layer''' menu item.<br>
As the name implies, this tool takes the active layer (as selected in the layer control) and saves a copy of this with a new filename. The currently open file will be closed and the new version opened, this avoids accidentally modifying the superseded version!<br>
The dialogue looks like the below.<br>
<br>
===Running the Tool===
ThisThe tool can be found in the TUFLOW Plugin toolbar, or via the QGIS menu '''Plugins >> TUFLOW >> Editing >> Increment Selected Layer''' menu item.<br><br>
[[File: increment_layer_toolicon.PNG]]<br>
[[File:QGIS TUFLOW Increment 03.png]]
<br>
The components are described below.
<ol>
<li>Drop '''Source Layer''' - drop box for selecting the layer to be incremented. This defaults to the current layer in the layer control.</li>
<li> '''Keep source formatting.''' - By''Depcrecated'' enabling- this checkboxoption ais styleno longer available.qml willThe besource createdformatting fromis thenow existingalways layerretained and(it thisalso willno belonger appliedcreates toa the new layer, so any custom styling will be.QML preservedfile).</li>
<li> '''Output Folder.''' - The location for the folder to be saved into. This defaults to the location of the current file and is updated if the '''Source Layer''' dropbox is changed.</li>
<li> '''Output Filename.''' - The output file, the tool will attempt to guess a filename by incrementing the current filename by 1. For example the source layer with name '''2d_code_M01_001_R''' will guess '''2d_code_M01_002_R'''. This will be updated if the '''Source Layer''' dropbox is changed.</li>
<li> '''Move Source Layer to Superseded Folder''' - This option will move the source layer to a new folder call 'SS' (superseded) once the new incremented layer has been created. This is intended to help users keep their GIS files tidy, with only current layers being present.
<li>Browse. Use the a file dialogue to set the output folder (item 3 above) and output filename (item 4 above).</li>
<li> '''Remove/Keep Source Layer in Workspace''' - This option will determine whether the original source layer is removed from the workspace or not. It is possible to use the option to keep the source layer in the workspace and "Move Source Layer to Superseded Folder" together.
<li>Standard buttons. OK to proceed and Cancel to quit the tool</li>
</ol>
The tool also checks if an existing file with the name and location specified already exists, if so, ana errorwarning will appear alerting the user. If the existing layer is displayedopen andin QGIS (or another GIS program) the tool will closeproduce an error.
<br>
 
<Br>
===Working with GPKG===
''Available since v3.3''<br>
If the source layer is a GPKG, the user will be given an additional option:
* '''Increment Layer Only''' - this will only save the individual layer from the GPKG database into a new or existing GPKG database. The tool will attempt to increment the name of both the GPKG database and layer.
* '''Increment Layer and Preserve Database''' - This option will give the user the ability to determine which layers from the existing GPKG database they would like to keep and/or increment into a new GPKG database. The database can be a new or existing GPKG database. The tool will automatically try and increment the output database name when the layer is first selected.
<br>
<br>
{{Tips Navigation