Learn QGIS - Fourth Edition

Book Description

Learn to view, edit and analyse geospatial data using QGIS and Python 3

Key Features

  • Leverage the power of QGIS to add professionalism to your maps
  • Explore and work with the newly released features like Python 3, GeoPackage, 3D views, Print layouts in QGIS 3.4
  • Build your own plugins and customize maps using QT designer

Book Description

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.

What you will learn

  • Explore various ways to load data into QGIS
  • Understand how to style data and present it in a map
  • Create maps and explore ways to expand them
  • Get acquainted with the new processing toolbox in QGIS 3.4
  • Manipulate your geospatial data and gain quality insights
  • Understand how to customize QGIS 3.4
  • Work with QGIS 3.4 in 3D

Who this book is for

If you are a developer or consultant familiar with the basic functions and processes of GIS and want to learn how to use QGIS to analyze geospatial data and create rich mapping applications, this book is for you. You'll also find this book useful if you're new to QGIS and wish to grasp its fundamentals

Publisher Resources

Download Example Code

Table of Contents

  1. Title Page
  2. Copyright and Credits
    1. Learn QGIS Fourth Edition
  3. Dedication
  4. About Packt
    1. Why subscribe?
    2. Packt.com
  5. Contributors
    1. About the authors
    2. Packt is searching for authors like you
  6. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
      1. Download the example code files
      2. Download the color images
      3. Conventions used
    4. Get in touch
      1. Reviews
  7. Where Do I Start?
    1. Installing QGIS 3.4
      1. Installing QGIS on Windows
        1. Installing QGIS using the OSGeo4W installer
          1. Latest QGIS release
          2. Advanced installer (to specify version)
      2. Installing on Ubuntu
    2. Running QGIS for the first time
      1. Plugins
    3. What is new in QGIS 3
    4. Introducing the QGIS user interface
      1. Menu bar
      2. Toolbars
      3. Information bar
      4. Layers and browser panels
      5. Map
    5. Finding help and reporting issues
    6. Summary
  8. Data Creation and Editing
    1. Data formats
      1. GeoPackage
    2. Loading data
      1. Getting data into QGIS
    3. Interacting with data
      1. Navigation
      2. Data attributes toolbar
        1. Inspecting the data
        2. Measuring data
        3. Selecting data
    4. Vector data
      1. Editing attribute data
      2. Building your own vector data
        1. Projections
        2. Creating data
          1. Create a ShapeFile
        3. Editing tools
        4. Snapping
        5. Mistakes and correcting with editing
        6. Populating attribute data
      3. Data joins
      4. Using temporary scratch layers
      5. Checking for topological errors and fixing them
        1. Finding errors with the Topology Checker
        2. Fixing invalid geometry errors
    5. Raster data
    6. Other data
      1. Creating a GeoPackage
        1. Exporting to a different format
      2. Spatial Databases
    7. Summary
  9. Visualizing Data
    1. Styling data
      1. Interactive styling
    2. Styling raster layers
      1. Layer styling – Terrain
      2. Layer styling – satellite image
        1. Raster Toolbar
      3. Styling data – landcover map
    3. Saving styles
    4. Styling vector layers
      1. Creating point styles – an example of an airport style
      2. Simple marker
        1. SVG
        2. Default symbols
      3. Creating line styles – an example of a river
      4. Creating polygon styles – an example of a landmass style
    5. Summary
  10. Creating Great Maps
    1. Communicating with data
    2. Labeling
      1. Interactively editing labels
      2. Displaying more information using labels
      3. Line labels
      4. Polygon labels
    3. Creating a map
    4. Loading data
      1. Adding layout items
        1. Add a title (or any text)
      2. Further map creation options
        1. Adding Grids
        2. Adding an overview map
        3. Adding an attribute table
      3. Map outputs
        1. Saving maps to share
        2. Creating an Atlas
      4. Presenting Maps online
        1. Exporting a web map
      5. QGIS2Web – an excellent way to export your data in openlayers or leaflet
        1. Exporting a 3D web map
    5. Summary
  11. Spatial Analysis
    1. Processing toolbox
    2. Analyzing raster data
      1. Clipping rasters
      2. Analyzing elevation/terrain data
      3. Terrain projections – slope maps
      4. Using the raster calculator
    3. Combining raster and vector data
      1. Converting between rasters and vectors
        1. Raster to vector
        2. Vector to raster
      2. Accessing raster and vector layer statistics
        1. Computing zonal statistics
      3. Creating a heatmap from points
    4. Advanced vector and raster analysis with processing
      1. Finding nearest neighbors
      2. Converting between points, lines, and polygons
      3. Building workflows with processing tools
        1. Identifying features in the proximity of other features
        2. Sampling a raster at point locations
        3. Mapping density with hexagonal grids
        4. Calculating area shares within a region
      4. Batch processing multiple datasets
      5. Automated geoprocessing with the graphical modeler
        1. Create a model that automates the creation of hexagonal heatmaps
        2. Documenting and sharing models
    5. Summary
  12. Extending QGIS with Python
    1. Adding functionality using actions
      1. Configuring your first Python action
      2. Opening files using actions
      3. Opening a web browser using actions
    2. Getting to know the Python console
      1. Loading and exploring datasets – vector data
      2. Loading and exploring datasets – raster data
      3. Styling layers
      4. Filtering data
      5. Creating a memory layer
      6. Exporting map images
    3. Creating custom geoprocessing scripts using Python
      1. Writing your first processing script
        1. Building a basic buffer script
          1. Running the script
          2. Extending the script
    4. Developing your first plugin
      1. Creating the plugin template with Plugin Builder
        1. Accessing qgis.core from the command line external to Python
        2. Setting up the pb_tool
        3. Assigning a logo to the plugin
        4. Customizing the plugin GUI
        5. Implementing plugin functionality
        6. Adding a message box when OK is clicked
    5. 3D view
    6. Summary
  13. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think

Product Information

  • Title: Learn QGIS - Fourth Edition
  • Author(s): Andrew Cutts, Anita Graser
  • Release date: November 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781788997423