Occasionally, you want to convert vectors to rasters to facilitate using raster analysis tools such as the raster calculator.
You'll need a vector layer; this can be a point, line or polygon layer. The best results generally come from polygon layers. We will use geology_wake2000reclass.shp. This file is the result of the earlier clipping vectors recipe with a new column added that codes the geology types as integers. For reference, you'll also use elev_wake_500m.tif as a matching raster for the area of interest.
In order to be useful in analysis, here's a checklist:
You can only pick numeric fields as raster formats only store a single number per cell. In order to keep the attribute that you want, you may need to use the field calculator to create a new field that reclassifies categories of text into a numeric scheme (for example, 1 = water, 2 = land, and so on) before performing the conversion. If you copy a unique ID as the attribute, there are some tools later that let you rejoin the original attribute table as a value attribute table (refer to the GRASS functions in Processing Toolbox).
geology_wake2000reclass.shp and elev_wake_500m.tif.elev_wake_500m.tif:geology_wake2000reclass.geology_wake.tif (you will get a warning to set the size or resolution).The following screenshot shows how the screen will look:

A grid of pixels is created at the specified width, height, and extent. For each cell, an intersection is performed with the underlying vector layer. If more than 50% of the cell intersects with the vector, it's designated attribute is assigned to the cell.
It's really important to match projection and extent before converting to raster. If you fail to do so, then your pixels in different raster layers won't line up perfectly with each other, and either tools won't work or they will introduce a resampling error. If this looks too pixelated (squares) for your liking, consider creating the raster at a higher pixel density.
If you compare the vector version to the new raster, you'll notice that the area in the middle all came out a similar color. This is due to the values used for classification, where the geology that started with the same major component was given the same starting value (for example, PZ all start with 40, and the last number changes based on the letters after PZ).
Looking at the new layer and want to get rid of the black surrounding the real data? This area is no-data, refer to Chapter 8, Raster Analysis II.