QGIS General Tools
===================

QGIS CRS Settings
-----------------

Setting up QGIS before starting a project. One startup setting makes
adding layers and importing files easier. Set up the coordinate reference system (CRS) of imported
layers. Click Settings/Options

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools1.png


1. Set the Default CRS to the coordinate system that is most commonly used.
   Select the Use project CRS radio button. See the following image for an
   example.

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools2.png

Open a Project
--------------

.. image:: ../img/115-Buttons/openproject.png


1. Click the Open button on the QGIS toolbar. Navigate to the project
   folder, select the \*.qgz file and click Open.

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools9.png


2. Click Yes
   to load the GeoPackage in the FLO-2D Plugin.

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools6.png


Save Project
-------------

.. image:: ../img/115-Buttons/savebutton.png


1. Click the Save button on the QGIS toolbar. Save the file to the project
   directory.

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools4.png


QGIS Browser Setting
--------------------

If QGIS freezes when opened, there is a potential fix in the qgis.ini file.  This simple fix will stop QGIS from trying
to read locked drives.

The file is found here: C:\\Users\\ACCT NAME\\AppData\\Roaming\\QGIS\\QGIS3\\profiles\\default\\QGIS

1. Open the file from the QGIS profile path.

.. image:: ../img/115-QGIS-General-Tools/qgisbrowsersettings1.png

2. Correct the file by adding the lines to qgis.ini file in any text editor as shown in the following image:

.. image:: ../img/115-QGIS-General-Tools/qgisbrowsersettings.png


Project Path Changes
--------------------

Path corrections may be required if the project folder was changed or moved to a new computer.
External data links can be correct using number 1 below and the geopackage links are automatically
corrected by the Plugin as shown in number 3 below.

**Important Note:  If the ProjectName.gpkg file is still in the old path, it will be chosen
automatically.**

1. Fix the links
   with QGIS and the FLO-2D Plugin with this process.

2. Fix the external data links with the Handle Unavailable Layers
   window. Auto find works well. Apply Changes to close the window.

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools7.png


3. The Load Model window finds the GeoPackage and fixes the path. Click
   yes to load the model from the new path.

.. image:: ../img/115-QGIS-General-Tools/qgisgeneraltools8.png
