TUFLOW Setup with Kart QGIS Plugin: Difference between revisions
Content deleted Content added
Tuflowduncan (talk | contribs) |
Tuflowduncan (talk | contribs) No edit summary |
||
Line 1:
== Introduction ==
Kart is a version control tool which stores geospatial data (and tabular data) in Git, providing a neat version control system whilst building TUFLOW models. Despite using Git, there is no requirement for the user to have a thorough understanding of Git, it's processes and commands. The Kart QGIS plugin provides a user interface for Kart which provides
== Benefits of using Kart ==
The video below shows an initial model build with some a number of TUFLOW model layers and where the layer geometry has undergone a number of iterative changes. The video shows:
* The Kart commit history table.
* Tags for specific commits. For instance for models that have undergone QA, been sent to a client or sent to [mailto:support@tuflow.com support@tuflow.com].
* The evaluation in differences between commit versions both in text form and in geometry form.
{{Video|name=Kart Tools History.mp4|width=1123}}
All of these are useful from a quality assurance perspective, allowing a history of the development of a TUFLOW model geometry files to be understood and analysed. Kart is very easy to use once it is set up. The set up of Kart to be used with TUFLOW is a little cumbersome but the steps below provide information of how to set up the Kart QGIS Plugin, set up the TUFLOW folders and initialise the Kart repository.
== Install the Kart Plugin ==
The first step is to install the Kart QGIS plugin. This is done using the '''Manage and Install Plugins''' tool within QGIS. Search for Kart and install the plugin.
Line 18 ⟶ 20:
== Set up the TUFLOW Model and Initialise Kart Repository ==
With Kart set up, we can now move towards setting up your TUFLOW model. To use Kart, you would need to be using a Geopackage GIS Format.
Firstly, we'll set up our TUFLOW folder structure and template files. To set up your TUFLOW folders, you can use your chosen method of either the [[QGIS TUFLOW Create Project|TUFLOW Create Project]] tool or the [[Create TUFLOW Project]] tool.
With the TUFLOW folders set up, there is now some fiddly steps to go through so that we can set up a Kart repository. Kart probably works best with a single Geopackage for the whole TUFLOW model, although it would be possible to use with seperate Geopackages.
* Cut and paste the
* Rename the '<nowiki/>'''GIS'''<nowiki/>' folder to ''''*Model_Name*'''<nowiki/>' where '*Model_Name*' is the same as your Geopackage name.
* Use the Kart Create new repository tool to create a new Kart repository.
Line 35 ⟶ 39:
* Rename the ''''Model_Name'''<nowiki/>' folder to ''''GIS'''<nowiki/>'
*
[[File:Remove Repository.png|thumb|Remove Repository|alt=|none]]
* We now need to add the renamed folder as an existing repository. Right click on the repositories
[[File:Add Existing Respository.png|thumb|Add Existing Repository|alt=|none]]
* We
[[File:Import dataset from File.png|thumb|Import Dataset from File|alt=|none]]
* The repository will now show the Geopackage layers, which at present is only the projection layer generate during the create TUFLOW project step.
[[File:Repository.png|thumb|Repository after Importing the Geopackage Dataset|alt=|none]]
Line 52 ⟶ 56:
* Finally, the Model_Name.gpkg can be deleted from the '''TUFLOW\Model''' folder.
The above steps are by far and away the fiddliest steps with the TUFLOW model Kart set up. Now we can start building the TUFLOW model and utilising Kart.
== TUFLOW Model Build ==
Line 61 ⟶ 65:
[[File:Kart Repository 2.png|thumb|Kart Respository Showing the Imported Empty File|alt=|none]]
We can now build the TUFLOW model geometry as we would do usually. As we add additional layers to the geodatabase, they will start to appear in the Kart repositories panel.
If the option to 'Commit automatically after closing editing' then the changes will be automatically committed. This is useful to avoid forgetting to commit, similar to how an
[[File:Commit message.png|none|frame|Manual commit with prompt for commit message]]
If you select the Kart repository or an individual layer dataset then you can choose to 'Show log' which provides a table of the commit history.
[[File:Commit History.png|none|frame|Kart Layer Dataset Commit History]]
The commit history can then be interrogated to show the details of the commits, the differences between versions, adding tags and other git like tools such as branching, merging, reverting back to older versions as well as replacing working copy changes.It is also possible to apply
== Using Remote Repositories ==
The above steps are for a local Kart repository. However, it is possible to use Kart with remote repositories. This is done by cloning a remote repository on Gitlab/Github or similar. Once a repository is cloned, changes can be push/pulled to and from the remote repository.
[[File:Remote repository.png|none|frame|Kart Push/Pull Functions to Remote Repository]]It should be noted that the TUFLOW team have not made sufficient use of Kart with remote repository
{{Tips Navigation
| |||