forked from spatialthoughts/courses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-qgis-ltr.Rmd
118 lines (84 loc) · 4.87 KB
/
install-qgis-ltr.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
title: "Install QGIS-LTR"
subtitle: "A Step-by-step guide for QGIS installation on Windows, Mac and Linux."
fontsize: 12pt
output:
html_document:
df_print: paged
toc: yes
toc_depth: 3
highlight: pygments
# pdf_document:
# toc: yes
# toc_depth: 3
# word_document:
# toc: yes
# toc_depth: '3'
header-includes:
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \renewcommand{\footrulewidth}{0.4pt}
- \fancyhead[LE,RO]{\thepage}
- \geometry{left=1in,top=0.75in,bottom=0.75in}
- \fancyfoot[CE,CO]{{\includegraphics[height=0.5cm]{images/cc-by-nc.png}} Ujaval Gandhi http://www.spatialthoughts.com}
classoption: a4paper
---
## Install QGIS on Windows
> Before you start: If you already have an older version of QGIS installed in your system, you need to uninstall it to avoid dependency related errors. To uninstall, see our [uninstallation guide](uninstall-qgis-ltr.html#uninstall-qgis-on-windows).
1. Visit the [QGIS.org Download](https://qgis.org/en/site/forusers/download.html) page. Click the **OSGeo4W Network Installer** link to download the installer. The OSGeo4W Network Installer is the preferred way to install QGIS because it ensures you get all the required dependencies for the software.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/winInstall01.png')
```
2. Once downloaded, double-click the `osgeo4w-setup.exe` to launch the installer.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/winInstall02.png')
```
3. In the **OSGeo4W Setup** window, choose **Express Install** and click *Next*. If you are prompted to *Choose a Download Site*, select `http://download.osgeo.org` and click *Next*.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/winInstall03.png')
```
4. Select **QGIS LTR** and click *Next*.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/winInstall04.png')
```
5. Accept all the terms and conditions and click *Next* to begin your download. You will have to accept terms for some non open-source packages.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/winInstall05.png')
```
6. Once the download gets completed, search for **QGIS** in the Windows Start Menu and choose the *QGIS Desktop 3.16*, click *Open*.
> You may have a slightly different minor version than shown here. As long as the version number starts with 3.16, it should be fine.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/winInstall06.png')
```
## Install QGIS on Mac
1. Visit the [QGIS.org Download](https://qgis.org/en/site/forusers/download.html) page. Click the **QGIS macOS Installer Version 3.16** under the *Official All-in-one, signed installers* section.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/mac1.png')
```
2. Once downloaded, double-click the `qgis-macos-pr.dmg` file to open the package. Drag the **QGIS-LTR** icon to the *Applications* folder.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/mac2.png')
```
3. It will copy QGIS to the *Application* folder. This process can take up to 15 minutes.
```{r echo=FALSE, fig.align='center', out.width='60%'}
knitr::include_graphics('images/common/mac3.png')
```
4. Once finished, Go to the *Applications* folder. Find the **QGIS-LTR** application and double-click to launch it.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/mac4.png')
```
5. The first time you launch the program, you will get a warning that *"QGIS-LTR" can't be opened because Apple cannot check for malicious software*. Click *OK*.
```{r echo=FALSE, fig.align='center', out.width='50%'}
knitr::include_graphics('images/common/mac5.png')
```
6. Go to *Preferences → Security & Privacy → General*. Click the *Lock* icon and enter your password. Click the *Open Anyway* button to launch QGIS. This step needs to be done only once. The next time, you can launch QGIS-LTR directly from the Applications folder.
```{r echo=FALSE, fig.align='center', out.width='75%'}
knitr::include_graphics('images/common/mac6.png')
```
## Install QGIS on Linux
Please follow the instructions for your Linux distribution from [QGIS.org Downloads](https://qgis.org/en/site/forusers/alldownloads.html#linux).
If your distribution does not have a QGIS package, or you are having difficulty with the installation, you can install QGIS via Conda. This is also the preferred method for PyQGIS Development. Please follow the [Using QGIS from Conda](https://gisunchained.wordpress.com/2019/05/29/using-qgis-from-conda/) guide by Alexander Neto.
To install the `QGIS-LTR` version from Conda, you must specify the full version name.
```
conda install qgis=3.16.8 --c conda-forge
```