.. _1.2: Introduction to QGIS ==================== Installing QGIS --------------- QGIS software is written in the C++ programming language, its development started in early 2002 and the software is constantly updated thought regular releases and bug fixes thanks to the collaborative effort of a large community of developers and users, under the advocacy of the `OpenSource Geospatial Foundation (OSGeo) `_ . QGIS can be downloaded from the `official QGIS website `_ after selecting from the available installation packages the one for your operating system. It is always suggested to work with the Long-Term Release (LTR) version of the software which is the current stable and best-maintained release. Download QGIS for Windows ************************* Click on `this link `_ to open the official QGIS website. By default the drop down menu **Download for Windows** will be opened. To start the download click on **Looking for the most stable version? Get QGIS 3.34 LTR (1)**. Follow the installation steps. (:numref:`1.2.1.1`) .. _1.2.1.1: .. figure:: /img/1/1.2.1.1.png :align: center -- Download QGIS for windows Download QGIS for macOS *********************** Click on `this link `_ to open the official QGIS website. Open the drop down menu **Download for macOS**. Click on: **Looking for the most stable version? Get QGIS 3.34 LTR (1)** to start the download then follow the installation steps. As stated over the download button **(2)**. (:numref:`1.2.1.2`) .. warning:: Remember that: *“After installing QGIS, the first launch attempt may fail due to security protections. To enable QGIS, control-click on its icon in your Applications folder and select Open in the context menu. A confirmation dialog will display where you need to click the Open button again. This only has to be done once.”* . .. hint:: macOS High Sierra (10.13) or later versions are required. QGIS is not yet notarized as required by macOS Catalina (10.15) security rules. .. _1.2.1.2: .. figure:: /img/1/1.2.1.2.png :align: center -- Download QGIS for macOS Download QGIS for Linux *********************** Most Linux distributions (distro) split QGIS into several packages, you’ll probably need qgis and qgis-python (to run plugins). Packages like qgis-grass (or qgis-plugin-grass), qgis-server can be skipped initially and installed only when you need them. Below you find instructions to install per distribution. Click on `this link `_ to open the official QGIS website. Open the drop down menu **Download for Linux**. Click on your choice’s distro **(1)** to start the download then follow the installation steps. (:numref:`1.2.1.1`) .. _1.2.1.3: .. figure:: /img/1/1.2.1.3.png :align: center -- Download QGIS for Linux QGIS Interface -------------- As soon as you open QGIS, you will be prompted with its interface (:numref:`1.2.2.1`) . In the top left corner you can see the project name **(1)**, under it there is the **Toolbar (2)** where tools can be shown instead of being hidden under different menus. It is useful to reach in a fast way your most used tools and plugins. On the left, under the toolbar, there is the **Browser** panel **(3)** from which you can access your database. Under the browser panel there is the **Layers** list **(4)**, here you can see all layers imported in the project. On the right of the screen you can see the **Processing Toolbox (5)** from which you can easily search tools (in case it is not present, later you will learn how to activate it). In the center you can see the map canvas **(6)** where active layers will be shown. Finally in the bottom part there is the status bar **(7)** where you can see different information such as the coordinates of the cursor, the map scale and the current coordinate reference system. .. _1.2.2.1: .. figure:: /img/1/1.2.2.1.png :align: center -- QGIS Interface - pt.1 In the event that some panels are not shown, you can activate them by clicking on **View** in the toolbar **(1)** (:numref:`1.2.2.2`), and then moving your mouse over **Panels (2)**. From there you can check the box of the panels that you miss. In this case we have activated the **Browser (3)**, **Layers (2)** and **Processing Toolbox (3)** panels. If the panels are not placed as shown or you like to change their position, you can click on the panels name and, without releasing the pressure on your mouse, drag them where you prefer. .. _1.2.2.2: .. figure:: /img/1/1.2.2.2.png :align: center -- QGIS Interface - pt.2 Open QGIS project ***************** To open a new QGIS project as shown in (:numref:`1.2.2.3`); click **Project (1)** on the top left corner of the toolbar then on **New (2)**. You can also use the shortcut (CTRL+N). .. _1.2.2.3: .. figure:: /img/1/1.2.2.3.png :align: center -- Open new QGIS project Import Background ***************** From the toolbar click on **Plugins (1)** (:numref:`1.2.2.5`) , then click on **Manage and install plugins… (2)**. The **Plugins** menu will pop up. Click on **All (3)**, to view a list of all available plugins, then type “QuickMapServices” in the search bar **(4)**. Click on QuickMapServices **(5)** and then on **Install Plugin (6)**. .. warning:: Internet connection is required for plugins installation. .. _1.2.2.4: .. figure:: /img/1/1.2.2.4.png :align: center -- Install QuickMapServices QGIS plugin To access the installed plugin click on **Web (1)** (:numref:`1.2.2.5`) and move your mouse over **QuickMapServices (2)**, then move it over **Google (3)** and finally click on **Google Terrain (4)**. .. _1.2.2.5: .. figure:: /img/1/1.2.2.5.png :align: center -- Lunch QuickMapServices plugin and import background In the event that some maps are not shown, you can activate them by clicking on **Web** in the toolbar **(1)** (:numref:`1.2.2.6`) , and then moving your mouse over **QuickMapService (2)**. Click on **Settings (3)**. Open the **Visibility** tab **(4)**. From this tab you can check the box of the maps provider that you miss, in this case: “google” **(5)**. Once done, click on Save **(6)**. .. _1.2.2.6: .. figure:: /img/1/1.2.2.6.png :align: center -- Activate QuickMapService Maps Layer CRS (Coordinate Reference System) and Project CRS ******************************************************* One of the most important things to know while working with georeferenced data is the :ref:`coordinate reference system ` they belong to. Different layers can belong to different CRS. In order to check the CRS of a layer right click on it **(1)** (:numref:`1.2.2.7`) and click on **Layer CRS (2)**. A drop down menu will open where you can read it **(3)**. There are many ways to check the project CRS, the easiest one is to rest your mouse on the icon on the left of the **Messages** icon present in the status bar, waiting a few seconds will make your current project CRS pop-up **(4)**. .. _1.2.2.7: .. figure:: /img/1/1.2.2.7.png :align: center -- Project CRS and Layer CRS Zoom-in to your city ******************** Try now to find your city by zooming in the map canvas, use the button with the "+"" icon **(1)** (:numref:`1.2.2.8`) .. _1.2.2.8: .. figure:: /img/1/1.2.2.8.png :align: center -- Zoom-in to your city .. _Save project: Save project ************ Saving the QGIS project can be done by clicking on **Project (1)** on the top left corner of the toolbar as illustrated in :numref:`1.2.2.9` and selecting **Save (2)** from the drop down menu. .. _1.2.2.9: .. figure:: /img/1/1.2.2.9.png :align: center -- Save QGIS project