Dasymetric mapping is a technique that is commonly used to improve population distribution maps. By default, population is displayed using census data, which is usually available for geographic units, such as census tracts whose boundaries don't necessarily reflect the actual distribution of the population. To be able to model population distribution better, Dasymetric mapping enables us to map population density relative to land use. For example, population counts that are organized by census tracts can be more accurately distributed by removing unpopulated areas, such as water bodies or vacant land, from the census tract areas.
In this recipe, we will use data about populated urban areas, as well as data about water bodies to refine our census tract population data.
To follow this exercise, please load the population data from census_wake2000_pop.shp (the file that we created in Chapter 2, Data Management), as well as the urban areas from urbanarea.shp, and the lakes from lakes.shp.
As all the datasets in our sample data already use the same CRS, we can get right into the analysis. If you are using different data, you may have to first get all datasets into the same CRS. In this case, please refer to Chapter 1, Data Input and Output, for details.
To create a new and improved population distribution map, we will first remove the unpopulated areas from the census tracts. Then, we will recalculate the population density values to reflect the changes to the area geometries by performing the following steps:


It is worth noting that you don't necessarily have to make a new column. If you only want to use the density values for styling purposes, you can also enter the expression directly in the style configuration. On the other hand, if you create a new column, you can inspect the density values in the attribute table, export them, or analyze them further.
We are done, and you can now visualize the results using a Graduated renderer with, for example, the Natural Breaks (Jenks) classification mode. The Jenks Natural Breaks classification is designed to arrange values into "natural" classes by maximizing the variance between different classes while reducing the variance within the generated classes. The following figure shows the population density based on the original census data (on the left) and the results after Dasymetric mapping (on the right):

In the first step of this recipe, we used the Clip operation. As you most likely noticed, the results of a Clip operation look very similar to the results of the Intersection tool, which we used in the previous recipe of this chapter, Selecting optimum sites. Compare both the results, and you will see the following differences:
A popular way of thinking about the Clip operation is to imagine one layer as the cookie cutter and the other layer as the cookie dough.