High resolution maps of the human population density in Africa

Population density maps have multiple implications, e.g., to help relief agencies to better plan where they are needed most in case of disaster and in demographic, economic and environmental research. However, in large parts of the world, it has always been difficult to produce accurate and consistent population (density) maps based on existing census data.

Three well known initiatives to produce consistent and high resolution population (density) maps are the Gridded Population of the World (GPW),  the Global Rural-Urban Mapping Project (GRUMP) and the Worldpop data. The first two, both published by SEDAC, come at a resolution of 30 arc seconds (approximately 1 km at the equator). The Worldpop data set comes at a higher resolution of 3 arc seconds (approximately 100 m at the equator) (Tatem 2017). This was achieved by disaggregating census data using machine learning algorithms with remote sensing data and other data sources (Stevens et al., 2015).

For an overview of the differences between different data sets, including the three mentioned above, check out the Popgrid Viewer by SEDAC. It provides a comparison of key characteristics of each data set. In addition, it provides an online viewer in which you can compare the maps side by side.

Recently, an even higher resolution population density map has been published by Facebook in collaboration with other parties. It is based on a mixture of machine learning techniques, high-resolution satellite imagery population data and OpenStreetMap (OSM). The result is a population density map at the impressive resolution of 1 arc seconds (approx. 30 meter at the equator). That is at the scale of a (large) building (!).

The images in the gallery above show that you should not expect to be able to identify individual houses in high density urban areas. On the other hand, it gives a pretty good idea of where people live on more remote areas on the slope of Mount Kenya. All in all, this map seems to capture the distribution of people across the landscape more accurately and at higher resolution than other maps mentioned earlier.

Of course, it is not only about spatial resolution. It is also about the accuracy of the population density estimates. In that respect, it is important to remember that the density estimates depend on the accuracy of the underlying census data, and that this data is largely the same as used in the maps mentioned earlier. On the other hand, at resolution of this map, you can actually start to compare population density estimates with the actual number of people in your block, and thus validate the map at a very local, sub-neighborhood level.


GRASS GIS 7.6.0 released

After almost 1 year of development the GRASS Development team has released the new stable release GRASS GIS 7.6.0. A big thanks to all developers for their work and dedication!

There is a lot to like, including further improvements to the user experience and new useful additional functionalities to modules. I, for example am curious to try out the new raster map type, the GRASS virtual raster (VRT). This is a virtual mosaic of a list of input raster maps.

But I would say, head over to the overview page where you can read more about the new features in the 7.6 release series: new features in GRASS GIS 7.6. Or update GRASS and check out yourself.

Update release GRASS GIS 7.4.4

For those who missed it, a new update release GRASS GIS 7.4.4 is available since the 4th of January. It mainly brings bugfixes, but it also includes an important new function, the module r.mapcalc.simple. This module is especially important for a better integration with QGIS. It therefore has already been dubbed the “QGIS friendship” release :).

For more information, see the detailed announcement on https://trac.osgeo.org/grass/wiki/Release/7.4.4-News. For an overview of the new features in the 7.4 release series see New Features in GRASS GIS 7.4.


Data exploration in GRASS GIS – boxplots

I am currently working on some exercises for which I need data about municipalities in the Netherlands. A good place to look for such data is the CBS (Dutch Central Bureau of Statistics). One data layer is vector layers of the dutch municipalities and neighborhoods, which include demographic data.

One of the first things I normally do when exploring new data is to look at the distribution of the data. For example by creating a histogram using the d.vect.colhist addon (see my earlier post). But what if I want to compare the distribution of different groups or samples? In such a case I find boxplots more convenient. However, there is no tool in GRASS GIS to create boxplots, so I had a look at the d.vect.colhist addon code and adapted the code to create boxplots instead of histograms.

An example

Let’s for example look at the average population densities of the municipalities.

The average population density (number of inhabitants / km2) per municipality in 2017. Source: CBS.

What if I want to compare the distribution of the average population density per provinces Dutch provinces? You can install the addon (see the end of this post) and run d.vect.colbp on the command line or the console. This will open a window with different tabs.

In the first tab, you can define a column in the attribute table to plot (here BEV_DICHTH, which is the column with the population density) and a column that will be used to group the data (here provincie, which gives the names of the provinces the municipality belongs to). As you can see in the screenshot above, you have a few options to change the plot (layout). In this case, I choose to rotate the x-axis labels so they do not overlap. The resulting plot looks like:

The distribution of the average population densities of the Dutch municipalities per province.

You can of course also use the command line. In this case I will plot the boxplots horizontally using the ‘h flag’.

d.vect.colbp -h map=gemeenten@CBS column=BEV_DICHTH \
    where="AANT_INW > 1" plot_output=example_1.png \
    group_by=provincie order=ascending --overwrite

With will give you the plot below.

The distribution of the average population densities of the Dutch municipalities per province.

The add-on does not provide further options to change the appearance of the plot, as the main idea is to use this for quick exploration of your data, similar to the other plotting tools in GRASS GIS. However, you can save the plot as a svg file, and further edit it in e.g., Inkscape.

You can install the addon using the g.extension to install the addon:

g.extension d.vect.colbp

Any feedback will be most welcome. If you try it out and run into problems, please let me know (suggestions for improvements are of course also welcome).

Hands-on course to GIS and Remote Sensing with GRASS GIS

The hands-on GRASS GIS course at ITC – University of Twente on November 3rd, 2017 was a great success. The course, organized by ITC and OSGeo.nl, offered a very nice introduction to GRASS GIS by Veronica Andreo and a guided tour about working with GRASS GIS by Sajid Pareeth.


As part of the course, we also developed three modules with hands-on exercises on different topics related to raster time series processing, remote sensing images processing and spatial interpolation in GRASS GIS.

All the course materials are available online, so check them out and enjoy 🙂