O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Automated Data Processing with PyQGIS

Video Description

Over 75 recipes for automated data processing with PyQGIS

About This Video

  • Delve into the undocumented features of the QGIS API

  • Get a set of user-friendly recipes that can automate entire geospatial workflows by connecting Python GIS building blocks into comprehensive processes

  • This course has a complete code upgrade to QGIS 2.18 and 60 new, invaluable recipes

  • In Detail

    QGIS is a desktop geographic information system that facilitates data viewing, editing, and analysis. QGIS, paired with the most efficient scripting language, Python, enables us to write effective scripts that extend the core functionality of QGIS. Based on version QGIS 2.18, this book will teach you how to write Python code that works with spatial data to automate geo-processing tasks in QGIS. It covers topics such as querying and editing vector data and using raster data. You will also learn to create, edit, and optimize a vector layer for faster queries, re-project a vector layer, reduce the number of vertices in a vector layer without losing critical data, and convert a raster to a vector. Following this, you will work through recipes that will help you compose static maps, create heavily customized maps, and add specialized labels and annotations. As well as this, we’ll also share a few tips and tricks based on different aspects of QGIS.

    Table of Contents

    1. Chapter 1 : Automating QGIS
      1. The Course Overview 00:06:30
      2. Installing QGIS 2.18 for Development 00:07:17
      3. Using the QGIS Python Console for Interactive Control 00:02:25
      4. Automatically Starting the Python Console 00:01:54
      5. Using the Python's Script Runner Plugin 00:03:37
      6. Setting Up Your QGIS IDE 00:06:45
      7. Debugging QGIS Python Scripts 00:07:39
      8. Navigating the PyQGIS API 00:04:07
      9. Creating a Traditional QGIS Plugin 00:06:21
      10. Creating a Processing Toolbox Plugin 00:03:31
      11. Storing and Reading Global and Project Preferences 00:05:00
      12. Accessing the Script Path from Within Your Script 00:02:20
    2. Chapter 2 : Querying Vector Data
      1. Loading a Vector Layer from a File Sample 00:04:08
      2. Loading a Vector Layer from a Geodatabase 00:02:24
      3. Examining Vector Layer Features and Attributes 00:04:27
      4. Filtering a Layer by Geometry 00:03:14
      5. Filtering a Layer by Attributes 00:02:37
      6. Buffering a Feature 00:02:59
      7. Measuring the Distance between Two Points and Along a Line 00:04:09
      8. Calculating the Area of a Polygon 00:02:17
      9. Creating a Spatial Index 00:02:55
      10. Calculating the Bearing of a Line 00:02:42
      11. Loading Data from a Spreadsheet 00:04:32
      12. Accessing Layer Metadata 00:04:08
    3. Chapter 3 : Editing Vector Data
      1. Creating a Vector Layer in Memory 00:02:58
      2. Adding a Point Feature to a Vector Layer 00:03:10
      3. Adding a Line Feature to a Vector Layer 00:02:30
      4. Adding a Polygon Feature, Field, and Other Attributes to a Vector Layer 00:06:29
      5. Joining a shapefile Attribute Table to a CSV File 00:04:23
      6. Changing the Vector Layer Geometry and Feature’s Attribute 00:03:48
      7. Removing Data from a Vector Layer, Deleting, and Re-projecting a Vector Layer 00:04:34
      8. Converting a Shapefile to KML or GeoJSON 00:02:36
      9. Merging and Splitting Shapefiles 00:04:27
      10. Generalizing a Vector Layer 00:02:09
      11. Dissolving Vector Features 00:01:56
      12. Performing a Union on Vector Shapes 00:01:37
      13. Rasterizing a Vector Layer 00:01:48
      14. Exporting a Layer to the GeoPackage Format 00:03:43
    4. Chapter 4 : Using Raster Data
      1. Loading a Raster Layer 00:04:56
      2. Loading a NetCDF File 00:02:38
      3. Getting the Cell Size, Width and Height of a Raster Layer 00:03:22
      4. Counting and Swapping Raster Bands 00:04:08
      5. Querying the Value of a Raster at a Specified Point 00:02:31
      6. Reprojecting a Raster 00:04:50
      7. Creating an Elevation hillshade 00:03:40
      8. Creating vector contours from Elevation Data 00:02:41
      9. Sampling a Raster Dataset Using a Regular Grid 00:04:43
      10. Adding Elevation Data to a Line Vertices Using a Digital Elevation Model 00:04:50
      11. Creating a Common Extent for Rasters 00:03:41
      12. Resampling raster Resolution 00:03:18
      13. Counting the Unique Values in a Raster and Mosaicking Rasters 00:04:43
      14. Converting a TIFF Image to a JPEG Image 00:01:55
      15. Creating Pyramids for a raster 00:03:12
      16. Converting a Pixel Location to a Map Coordinate and Vice Versa 00:04:46
      17. Creating a KML Image Overlay for a Raster 00:03:24
      18. Converting a Raster to a Vector 00:02:29
      19. Georeferencing a Raster from Control Points 00:03:33
      20. Clipping a Raster Using a Shapefile 00:03:02