To analyse the "virginity" of an area I created a binary raster with

1 = human infrastructure (road, housing, ...)
0 = no human infratructure (forest, agriculture, ...)

I would no like to calculate the distance from each cell (especially the 0-cells) to the nearest cell with value 1.

How? I use QGIS 2.18.

  • ok after the fifth attempt GDAL proximity did as expected...
    – Kevkev770
    Commented Jan 23, 2018 at 14:45
  • If that has worked for you, please consider writing it as an answer yourself and accepting it, so others too may benefit from it in the future :) Commented Jan 23, 2018 at 15:42
  • thx Roberto, I answered but can't accept it yet...
    – Kevkev770
    Commented Jan 23, 2018 at 20:34

1 Answer 1


So I used GDAL Proximity Algorithm to solve the problem. Obviously I had some parameters wrong first because it's what I thought must be the way and therefore tried several times.you see my working parameters here

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.