Book Image

Learn QGIS - Fourth Edition

By : Andrew Cutts, Anita Graser
Book Image

Learn QGIS - Fourth Edition

By: Andrew Cutts, Anita Graser

Overview of this book

QGIS 3.4 is the first LTR (long term release) of QGIS version 3. This is a giant leap forward for the project with tons of new features and impactful changes. Learn QGIS is fully updated for QGIS 3.4, covering its processing engine update, Python 3 de-facto coding environment, and the GeoPackage format. This book will help you get started on your QGIS journey, guiding you to develop your own processing pathway. You will explore the user interface, loading your data, editing, and then creating data. QGIS often surprises new users with its mapping capabilities; you will discover how easily you can style and create your first map. But that’s not all! In the final part of the book, you’ll learn about spatial analysis and the powerful tools in QGIS, and conclude by looking at Python processing options. By the end of the book, you will have become proficient in geospatial analysis using QGIS and Python.
Table of Contents (8 chapters)

To get the most out of this book

We will cover installation in Chapter 1, Where Do I Start. This book steps through the basic tasks of QGIS 3.4 through to the advanced topics, such as Python programming. To get the most from this book, it is recommended to follow the chapters in sequence.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Learn-QGIS-Fourth-Edition. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://www.packtpub.com/sites/default/files/downloads/9781788997423_ColorImages.pdf.

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "But what about the remaining 13 rows? They will now have no entry for the small_area field."

A block of code is set as follows:

my_features = v_layer.getFeatures()
for feature in my_features:
print (feature.attributes())

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

my_features = v_layer.getFeatures()
for feature in my_features:
print (feature.attributes())

Any command-line input or output is written as follows:

[1, 18, 78.0, 'NOATAK', 'Other']
[2, 18, 264.0, 'AMBLER', 'Other']
[3, 26, 585.0, 'BETTLES', 'Other']

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "This can be done by going to Layer Properties | Style | Save Style | QGIS Layer Style File, or, alternatively, you can use any other style you like."

Warnings or important notes appear like this.
Tips and tricks appear like this.