Book Image

QGIS Quick Start Guide

By : Andrew Cutts
Book Image

QGIS Quick Start Guide

By: Andrew Cutts

Overview of this book

QGIS is a user friendly, open source geographic information system (GIS). The popularity of open source GIS and QGIS, in particular, has been growing rapidly over the last few years. This book is designed to help beginners learn about all the tools required to use QGIS 3.4. This book will provide you with clear, step-by-step instructions to help you apply your GIS knowledge to QGIS. You begin with an overview of QGIS 3.4 and its installation. You will learn how to load existing spatial data and create vector data from scratch. You will then be creating styles and labels for maps. The final two chapters demonstrate the Processing toolbox and include a brief investigation on how to extend QGIS. Throughout this book, we will be using the GeoPackage format, and we will also discuss how QGIS can support many different types of data. Finally, you will learn where to get help and how to become engaged with the GIS community.
Table of Contents (9 chapters)

Using the Python command line

From the Plugins toolbar, select the Python Console button, or press Ctrl + Alt + P, or select Python Console from the Plugins menu.

Python has become the programming language of choice for GIS. In this book, we will just look at the basics of the QGIS API. As you become more advanced, you can use Python to develop your own plugins and custom scripts. Eventually, you could use the QGIS Python library (PyQGIS), external to QGIS, to build applications.

Open a new empty QGIS project.

Loading a layer

To load a vector layer, we use the addVectorLayer() function of iface. The iface class is used to access the graphical part of the QGIS interface. In the following example, I am adding airport.shp to...