I have a road shp (or raster) layer, and I'd like to make a new raster layer of each cell is filled with the distance to the nearest road.

Is it possible to compute the layer using QGIS with some function or plugin ?

1 Answer 1


You can easily achieve this by first rasterizing the road network using the GDAL tool Rasterize (vector to raster) from the QGIS processing toolbox using a desired resolution. In a second step you apply the GDAL tool Proximity (raster distance) that can be found in the same processing algorithm collection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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