TUFLOW Setup with Kart QGIS Plugin: Difference between revisions
Content deleted Content added
Tuflowduncan (talk | contribs) |
Tuflowduncan (talk | contribs) |
||
Line 14:
[[File:Kart QGIS Plugin.png|thumb|600x600px|Kart QGIS Plugin|alt=|none]]The plugin requires that you install Kart from https://kartproject.org/
Once the plugin and Kart is installed, there is a Kart menu within QGIS with some settings. Specify the path to the installed Kart executable. There's an option to Auto Commit which will commit your changes to the repository when you 'Toggle editing' off within QGIS. This can be a useful option, although the drawback is that you are not prompted to add a commit message.[[File:Kart Settings.png|thumb|Kart Settings|alt=|none|465x465px]]
The Kart Repositories panel should show something similar to the following, with no repositories showing.
[[File:Kart Repository.png|thumb|Initial Kart Repository|alt=|none|465x465px]]
== Set up the TUFLOW Model and Initialise Kart Repository ==
Line 31:
* Use the Kart Create new repository tool to create a new Kart repository.
[[File:Create Kart Repository.png|thumb|Create Kart Repository|alt=|none|400x400px]]
* Select the '''TUFLOW\Model\Model_Name''' folder and ensure 'Geopackage in repository folder' is selected in the Storage type option. Click OK.
[[File:Kart Repository Setup.png|alt=Kart Repository Setup|thumb|none|400x400px]]
* Cut and paste the ''''empty'''<nowiki/>' folder from '''TUFLOW\Model''' to the '''TUFLOW\Model\Model_Name''' folder.
* Rename the ''''Model_Name'''<nowiki/>' folder to ''''GIS'''<nowiki/>'
Line 41:
* We will now remap the <nowiki/>repository to th<nowiki/>e '''GIS''' folder. In the Kart repositories panel, highlight the current repositiry and choose to 'remove this repository'. Click Yes when the prompt dialogue comes up.
[[File:Remove Repository.png|thumb|Remove Repository|alt=|none|400x400px]]
* We now need to add the renamed folder as an existing repository. Right click on the repositories option and select 'Add existing repository'. Navigate to the '''TUFLOW\Model\GIS''' folder and choose select folder.
[[File:Add Existing Respository.png|thumb|Add Existing Repository|alt=|none|400x400px]]
* We can now import the '''Model_Name.gpkg''' into the repository. This is done by right clicking on the repository and selecting 'Import dataset from file'. Navigate to the '''TUFLOW\Model\Model_Name.gpkg''' and select open.
[[File:Import dataset from File.png|thumb|Import Dataset from File|alt=|none|400x400px]]
* 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|400x400px]]
* Finally, the Model_Name.gpkg can be deleted from the '''TUFLOW\Model''' folder.
Line 60:
== TUFLOW Model Build ==
We can now start to build our TUFLOW model using the traditional steps of the [[QGIS TUFLOW Import Empty|Import Empty File]] tool within the QGIS TUFLOW Plugin. When importing the empty files, we can import to the gpkg in Kart repository using the options in the following image, ensuring to select the 'All to one' option and choosing to 'Import into Kart repo folder'.
[[File:Import Empty File.png|thumb|Import Empty File|alt=|none|452x452px]]
Once the empty file is imported, you can refresh the Kart Repository, and see the additional layers with there.
[[File:Kart Repository 2.png|thumb|Kart Respository Showing the Imported Empty File|alt=|none|400x400px]]
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.
Line 75:
== 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|Kart Push/Pull Functions to Remote Repository|alt=|thumb|
{{Tips Navigation
| |||