QGIS TUFLOW Increment Layer: Difference between revisions
Content deleted Content added
Ellis Symons (talk | contribs) |
|||
| (17 intermediate revisions by 3 users not shown) | |||
Line 1:
= Introduction =
This tool takes the active layer (as selected in the layer control) and saves a copy of this with a new filename. By default the currently open file will be closed and the new version opened, however there is the option to keep both versions open in the workspace. The new layer will adopt the same styling as the old layer.<br>
[[File: TUFLOW_plugin_increment_layer.png]]<br>
<br>
Example 'Increment Selected Layer' dialog:<br>
▲===Running the Tool===
▲The tool can be found in the TUFLOW Plugin toolbar, or via the QGIS menu '''Plugins >> TUFLOW >> Editing >> Increment Selected Layer'''.<br><br>
[[File:
<br>
The
<ol>
<li> '''Source Layer:'''
<li> '''Output Folder:''' The location for the folder to be saved into. This defaults to the folder location where the current file is saved and is updated if the 'Source Layer' dropbox is changed.
<li> '''Keep source formatting''' - ''Depcrecated'' - this option is no longer available. The source formatting is now always retained (it also no longer creates a .QML file).▼
<li> '''Output
<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> '''
</ol>
▲
The tool also checks if an existing file with the name and location specified already exists, if so, a warning will appear alerting the user. If the existing layer is open in QGIS (or another GIS program) the tool will produce an error.
<br>
<Br>▼
=
:''Available since v3.3''<br>
If the source layer is in a GeoPackage (GPKG), the user will be given additional options:<Br>
:'''Note:''' <
[[File: Increment_Layer_02a.png]]<br>
<br>
A summary of the options is described below and more details are given further on:
* '''<u>[[QGIS_TUFLOW_Increment_Layer#Increment_Layer_Only|Increment Layer Only]]</u>:'''
* '''<u>[[QGIS_TUFLOW_Increment_Layer#Increment_Layer_and_Preserve_Database|Increment Layer and Preserve Database]]</u>:'''
* '''<u>[[QGIS_TUFLOW_Increment_Layer#Save_Layer_Out_Into_Superseded_Folder|Save Layer Out Into Superseded Folder]]</u>:'''
==
This option saves the layer selected in the dropbox into a new or existing GPKG. Other layers in the GPKG will not be copied or incremented in the process. The tool automatically provided an incremented name (that the user can edit) for the output database and layer name when the layer is selected in the dropdown box. The ability to move the old layer to the superseded folder and/or keep the old layer open is available for this increment option.
==
This
The option to move superseded files to a new separate folder and/or keep the old layers open is available for this increment option.<br>
[[File: Increment_Layer_03a.png]]<Br>
===Save Layer Out Into Superseded Folder===▼
The option saves the layer selected in the dropdown box into a new location (called a superseded folder by the tool) and keeps the current layer open in QGIS. This option allows users to use a centralised database without having to increment the entire database each time. The user saves the superseded layer in a new location for posterity and continues to work the layer in the centralised database. The user is given the option to let the tool automatically supersede the layer or customise the supersede location. The automatic option will save the layer into a folder called 'ss' in the same location as the GPKG (each layer will be given a new GPKG with the same name as the layer).<br>▼
▲<Br>
If the user has the '''File Management''' plugin installed, an option to rename the active layer is also available. This simply renames the layer inside the GPKG (no copying is done in this step) and allows the usual workflow of incrementing names to be used with this approach. The File Management plugin is required as this plugin has solved the problem of renaming a layer that is atively open in QGIS.<Br>▼
===Examples===▼
▲The option saves the layer selected in the dropdown box into a new location (called a superseded folder) by the tool
'''Example 1 - Shapefile'''<Br>▼
<br>
▲If the user has the '''File Management''' plugin installed, an option to
[[File: Increment_Layer_04a.png]]<br>
<br>
{{Video|name=Animation_Increment_Layer_eg_SHP_01a.mp4|width=1184}}
<br>
=== Example 2 - GeoPackage ===
{{Video|name=Animation_Increment_Layer_eg_GPKG_01a.mp4|width=1184}}
▲<Br>
{{Tips Navigation
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]
| |||