I'm a beginner with GIS software and I'm trying to get a raster greyscale heightmap from contour lines (read from a GeoPackage) in QGIS.

I'm using the Grid interpolation tools (menu Raster>Analysis>Grid (***)), and I'm faced with two issues:

  1. It only seems to work from points vector layers and not lines (I'm not able to select a line layer in the dialog box).

  2. If I use a point layer (for test purposes only), I cannot find how to specify the 'size' of pixels (which are way too big with the default settings).

Am I using the right tool? What am I missing?

  • 2
    To point 1: extract vertices of the lines to get points that you can use. You can also first densify the line to get more and regularily spaced vertices.
    – Babel
    Commented Sep 20, 2021 at 9:48

1 Answer 1


The easiest way would be to use TIN-Interpolation from the Toolbox which can take a contour-line layer for input:

enter image description 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.