I have a shapefile with contours and their heights.
Is it possible to make a DEM from contours in QGIS without using GRASS?
I found Creating DEM from contours using ArcGIS Desktop? but the answer is for ArcGIS Desktop.
I have a shapefile with contours and their heights.
Is it possible to make a DEM from contours in QGIS without using GRASS?
I found Creating DEM from contours using ArcGIS Desktop? but the answer is for ArcGIS Desktop.
Yes, there are several options available in QGIS:
Raster > Grid (Interpolation)
. GDAL's interpolation is more robust because you can use other interpolation algorithms (IDW, nearest neighbor, moving average, etc.). This tools only works for point data.v.surf.*
and r.surf.*
). You need convert your shapefile into a GRASS database to use the GRASS modules in QGIS.Raster|Grid (Interpolation)
tool, but definitely not perfect!
Commented
Dec 23, 2011 at 6:58
GRASS has also many options
http://grass.osgeo.org/wiki/Contour_lines_to_DEM
available one way or another also trough the QGIS/GRASS plugin.
I just posted this answer on another thread that was asking the same question. This is by far the easiest method that I have found.
I had the same question and looked everywhere! Finally a solution - you need to use "TIN interpolation". This video explains it perfectly: https://www.youtube.com/watch?v=PhJ77uHlTJA
It demonstrates other processes as well but the main thing is they used contour line data and created a DEM. Really good explanation as well.
Key tools used:
The question is old, but as it is ranked high in Google search, so I think it is helpful to say QGIS has built-in interpolation tools:
https://www.qgistutorials.com/en/docs/interpolating_point_data.html
However, the tutorial is also old.
For QGis 3.2, you can find it in the PROCESSING TOOLBOX, or in the RASTER > ANALYSIS > GRID menu:
MiraMon has an excellent tool for converting contour lines (and supports adding breaklines as ridges, channels (2D or 3D) or roads (3D)) to a raster using an optimum algorithm for that.
You can download the package for free from www.miramon.cat. The module (IsoMDE) is available via "Tools | Terrain interpolation and analysis | Interpolation from contour lines".
MiraMon v.9 can import many formats and from v. 10 < https://www.miramon.cat/mus/eng/index_10.htm > any vector format via GDAL/OGR (in fact, GDAL has a MiraMonVector driver also). The generated DEM (in IMG format) can be exported via TIFF, ASCII, etc.
All processes can be also executed from command line (see syntax at the help system, or generate commands from the "BAT/PS1" button of any module).
More info at https://www.miramon.cat/help/eng/msa/IsoMDE.htm