I'm using QGIS to work with a contour line shapefile with contour lines that are not spaced evenly (e.g. not just 100 meter elevation increase between each line). The increase ranges from a 100 meter increase to a 5000 meter increase. Is there anyway to create a DEM from this data, or do I need to find a way to regularly space the elevation data?
r.surf.contour tool, which is found in the
Processing Toolbox > GRASS > Raster(r.*).
Note 1) This GRASS tool can be run only when you use "QGIS Desktop 3.xx.x with GRASS 7.8.x".
Note 2) This tool requires a raster as input.
- A small example of uneven contours (100, 200, 300, ..., 1000, 1500) was rasterized by
Rasterize (Vector to Raster)in the
Processing Toolbox > GDAL > Vector Conversion. This tool produces a Rasterized layer.
Start r.surf.contour tool.
Rasterizedlayer as the input raster layer, and make sure to calculate the region extent of this layer (even though it says optional).
Final output layer is called DTM from contours. The quality of the image depends on how you set the pixel size. Please note I have rasterized the contour to 300 x 400 pixels (the above image).