Is it possible (using QGIS) to calculate the population size from a raster layer within a certain area?

For example:

I have a population density raster layer (100x100 grid cell) for South Africa, and I want to determine what the population of a certain district is.

enter image description here

1 Answer 1


You can do this using the Raster zonal statistics tool. You must create a new vector layer with polygons representing your area. Use your raster and vector data as inputs to this tool.

  • Thanks for the feedback. Is this plugin available with QGIS 3? I can't seem to find it.
    – JohnGIS
    Commented Jun 26, 2018 at 12:35
  • @JohnGIS I use QGIS 3.2. This is a tool, not a plugin. If you use QGIS 2.18 you can try this plugin: docs.qgis.org/2.18/en/docs/user_manual/plugins/… Commented Jun 26, 2018 at 12:39
  • 1
    In 3.0 you'll find it within the processing toolbox
    – ndawson
    Commented Jun 26, 2018 at 19:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.