Automated Data Processing with PyQGIS [Video]

Automated Data Processing with PyQGIS [Video]

This video is included in a Mapt subscription
Joel Lawhead

Over 75 recipes for automated data processing with PyQGIS
$10.00
RRP $124.99
Preview in Mapt

Video Details

ISBN 139781788390330
Course Length3 hours and 36 minutes

Video Description

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.

Style and Approach

 This course follows a recipe-based problem-solution approach to address and dispel challenges faced when implementing and using QGIS on a regular basis.

Table of Contents

Automating QGIS
The Course Overview
Installing QGIS 2.18 for Development
Using the QGIS Python Console for Interactive Control
Automatically Starting the Python Console
Using the Python's Script Runner Plugin
Setting Up Your QGIS IDE
Debugging QGIS Python Scripts
Navigating the PyQGIS API
Creating a Traditional QGIS Plugin
Creating a Processing Toolbox Plugin
Storing and Reading Global and Project Preferences
Accessing the Script Path from Within Your Script
Querying Vector Data
Loading a Vector Layer from a File Sample
Loading a Vector Layer from a Geodatabase
Examining Vector Layer Features and Attributes
Filtering a Layer by Geometry
Filtering a Layer by Attributes
Buffering a Feature
Measuring the Distance between Two Points and Along a Line
Calculating the Area of a Polygon
Creating a Spatial Index
Calculating the Bearing of a Line
Loading Data from a Spreadsheet
Accessing Layer Metadata
Editing Vector Data
Creating a Vector Layer in Memory
Adding a Point Feature to a Vector Layer
Adding a Line Feature to a Vector Layer
Adding a Polygon Feature, Field, and Other Attributes to a Vector Layer
Joining a shapefile Attribute Table to a CSV File
Changing the Vector Layer Geometry and Feature’s Attribute
Removing Data from a Vector Layer, Deleting, and Re-projecting a Vector Layer
Converting a Shapefile to KML or GeoJSON
Merging and Splitting Shapefiles
Generalizing a Vector Layer
Dissolving Vector Features
Performing a Union on Vector Shapes
Rasterizing a Vector Layer
Exporting a Layer to the GeoPackage Format
Using Raster Data
Loading a Raster Layer
Loading a NetCDF File
Getting the Cell Size, Width and Height of a Raster Layer
Counting and Swapping Raster Bands
Querying the Value of a Raster at a Specified Point
Reprojecting a Raster
Creating an Elevation hillshade
Creating vector contours from Elevation Data
Sampling a Raster Dataset Using a Regular Grid
Adding Elevation Data to a Line Vertices Using a Digital Elevation Model
Creating a Common Extent for Rasters
Resampling raster Resolution
Counting the Unique Values in a Raster and Mosaicking Rasters
Converting a TIFF Image to a JPEG Image
Creating Pyramids for a raster
Converting a Pixel Location to a Map Coordinate and Vice Versa
Creating a KML Image Overlay for a Raster
Converting a raster to a Vector
Georeferencing a Raster from Control Points
Clipping a Raster Using a Shapefile

What You Will Learn

  • Use Python and QGIS to produce captivating GIS visualizations and build complex map layouts
  • Find out how to effectively use poorly-documented and undocumented features of the QGIS Python API
  • Change QGIS settings programmatically to control default behaviors

Authors

Table of Contents

Automating QGIS
The Course Overview
Installing QGIS 2.18 for Development
Using the QGIS Python Console for Interactive Control
Automatically Starting the Python Console
Using the Python's Script Runner Plugin
Setting Up Your QGIS IDE
Debugging QGIS Python Scripts
Navigating the PyQGIS API
Creating a Traditional QGIS Plugin
Creating a Processing Toolbox Plugin
Storing and Reading Global and Project Preferences
Accessing the Script Path from Within Your Script
Querying Vector Data
Loading a Vector Layer from a File Sample
Loading a Vector Layer from a Geodatabase
Examining Vector Layer Features and Attributes
Filtering a Layer by Geometry
Filtering a Layer by Attributes
Buffering a Feature
Measuring the Distance between Two Points and Along a Line
Calculating the Area of a Polygon
Creating a Spatial Index
Calculating the Bearing of a Line
Loading Data from a Spreadsheet
Accessing Layer Metadata
Editing Vector Data
Creating a Vector Layer in Memory
Adding a Point Feature to a Vector Layer
Adding a Line Feature to a Vector Layer
Adding a Polygon Feature, Field, and Other Attributes to a Vector Layer
Joining a shapefile Attribute Table to a CSV File
Changing the Vector Layer Geometry and Feature’s Attribute
Removing Data from a Vector Layer, Deleting, and Re-projecting a Vector Layer
Converting a Shapefile to KML or GeoJSON
Merging and Splitting Shapefiles
Generalizing a Vector Layer
Dissolving Vector Features
Performing a Union on Vector Shapes
Rasterizing a Vector Layer
Exporting a Layer to the GeoPackage Format
Using Raster Data
Loading a Raster Layer
Loading a NetCDF File
Getting the Cell Size, Width and Height of a Raster Layer
Counting and Swapping Raster Bands
Querying the Value of a Raster at a Specified Point
Reprojecting a Raster
Creating an Elevation hillshade
Creating vector contours from Elevation Data
Sampling a Raster Dataset Using a Regular Grid
Adding Elevation Data to a Line Vertices Using a Digital Elevation Model
Creating a Common Extent for Rasters
Resampling raster Resolution
Counting the Unique Values in a Raster and Mosaicking Rasters
Converting a TIFF Image to a JPEG Image
Creating Pyramids for a raster
Converting a Pixel Location to a Map Coordinate and Vice Versa
Creating a KML Image Overlay for a Raster
Converting a raster to a Vector
Georeferencing a Raster from Control Points
Clipping a Raster Using a Shapefile

Video Details

ISBN 139781788390330
Course Length3 hours and 36 minutes
Read More

Read More Reviews

Recommended for You

Automated GIS Workflows with PyQGIS [Video] Book Cover
Automated GIS Workflows with PyQGIS [Video]
$ 10.00
Fast Data Processing Systems with SMACK stack [Video] Book Cover
Fast Data Processing Systems with SMACK stack [Video]
$ 10.00
Learning Path: Data Science With Apache Spark 2 [Video] Book Cover
Learning Path: Data Science With Apache Spark 2 [Video]
$ 10.00
Data Analysis with Python [Video] Book Cover
Data Analysis with Python [Video]
$ 10.00