Learn GIS and data science in our courses and tutorials

Latest Tutorials

PyQGIS: Clip Vector Layers

It is very simple to clip vector layers with PyQGIS. This tutorial will demonstrate how to use Python in QGIS to clip a line layer with a polygon layer. First, import the processing module and...

PyQGIS: Shapefile from Selected Features

A common operation with vector layers is to select features based on attribute values and save those features to a new vector layer (i.e. shapefile). This tutorial will walk you through how to create...

PyQGIS: Create a Shapefile

In this tutorial, we'll walk through how to create a shapefile from scratch with the QGIS Python (PyQGIS) API. You shouldn't need to do this, but if you're running into problems where functions...