QGIS DEM – How to Interpolate Smoothly NoData Values

demfillinterpolationnodataqgis

I have a DEM raster where all the buildings have been extruded and now contain "nodata" values. I'd like fill the holes and get a nice and continuous surface (which would approximately correspond to the natural terrain). I tried the Fill Nodata function in QGIS (Rater -> Analysis -> Fill Nodata) without changing the parameters. The holes are filled but strange lines appear (probably due to the near topography characteristics).

enter image description here
enter image description here

Is there another way to fill the missing values by getting a smooth and continuous ground and without changing the rest of the DEM? I tried to use the r.fillnulls function (GRASS) but it always crashes for an unknown reason.

Best Answer

I got curious and tried the different fill nodata functions. As you can see the regular SAGA Close Gaps produced the least anomalies. It also took the longest.
DEM with nodata gaps

GDAL Fill nodata SAGA Close Gaps

SAGA Close Gaps Spline SAGA Close Gaps Stepwise Resampling

Related Question