Creating pyramids for a raster
Pyramids, or overview images, sacrifice the disk space for map rendering speed by storing resampled, lower-resolution versions of images in the file alongside the full resolution image. Once you have finalized a raster, building pyramid overviews is a good idea.
Getting ready
For this recipe, we will use a false-color image, which you can download from https://github.com/GeospatialPython/Learn/raw/master/FalseColor.zip.
Unzip this .tif
file and place it in your /qgis_data/rasters
directory.
How to do it...
The Processing Toolbox has a dedicated algorithm for building pyramid images. Perform the following steps to create pyramids for a raster:
- Start QGIS.
- From the Plugins menu, select Python Console.
- Import the
processing ...
Get QGIS Python Programming Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.