Solved: QGIS 3.20 Python Console shows an error when running Clip Vector by Extent tool

ERROR 1: Attempt to write non-multipoint (POINT) geometry to multipoint shapefile. ERROR 1: Unable to write feature 0 from layer points_layer. ERROR 1: Terminating translation prematurely after failed translation of layer points_layer (use -skipfailures to skip errors)

Sampling raster values in predetermined points on QGIS

In this post, I show how to perform this process using two different tools, one of them is native of QGIS, and the other is a plugin available on the plugin repository. Then, I comment on how to sample the original raster using an interpolation such as cubic, cubic spline, or bilinear for the sampled value.

Trick to fix broken polygon geometries in QGIS 3.X

First, I will create a purposefully invalid geometry to apply the fix. Then, I will show you two ways to fix it. In one of them, I simply apply the “Fix geometries” native tool of QGIS. The second option I will show here is using the buffer tool. In this simple trick, I will show you how to create an infinitesimal buffer around my broken geometry, which ends up fixing it, but has its perks as well.

How to create custom geometries based on vector shapes to use on the map legend or symbology on QGIS

This week, I am showing you how to create custom geometries to enhance your legends on QGIS Print Layout. Specifically, how to create these geometries based on vector files that you already have. The example I will provide is how to create the Legend Patch Shape for the state of Rio Grande do Sul, in Brazil.

A draggable Truesize Leaflet map of the Brazilian states, and how to do the same for your own country or region

The good news is that using Leaflet Truesize plugin, you can add your own customized draggable polygons to the map. A map that I thought almost immediately is the representation of the draggable Brazilian states, so you could compare them to each other and to the size of other countries. And that is why this is used as an example for this tutorial.

How to georeference images using QGIS 3

Today, I am going to show you how to georeference an image using QGIS 3.18. Maybe you found this image in a paper, or maybe it is an aerial photograph. It doesn’t matter! If you know the coordinates of at least two non collinear points, you can add geolocation to the image!