Before writing here I exhausted any online resources, blogs, videos etc I could find. Here's my problem, with photos and a thorough explanation.
I have a very high res DSM (5m) that has holes (voids). I need to keep and use this surface and I am searching for a way to make it adequate for the usage I want it, that is for hiking maps. Searching for a replacement of lower res is not a solution for my case. Also, I am currently using ArcMap and do not spare the time to switch to ArcGIS Pro right now.
Trying to fix this, I came up with the following workaround that still produces some visible inadequacies (see pictures 4 and 5):
- I smoothed the DSM 5m with focal statistics in order to smooth the edges of the voids
- I used a DTM 30m (ALOS) which I clipped at the same extent and then resampled at 10m.
- I combined my DSM 5m and the DTM 10m with map algebra (raster calculator) with the following expression: Con(IsNull("DSM_5m"),"DTM_10m","DSM_5m")
- I examined the result and even smoothed it with focal statistics (circle, 3px radius), but it is still inadequate.
My problem is: at the edges of the void fill, the merging/stitching is very visible in surfaces like hillshade or slope and derivatives like contour lines, a result which is not acceptable for hiking maps. In the photos below I pinpointed a few pixel areas where the problem is very visible.
My question is: is there a way to fix this, i.e. smooth the edges before or after combining the two rasters in order to fill the voids?
Perhaps I have to start over with another procedure, in case I am doing something wrong or not really helpful (like combining the two rasters)
The rasters I'm combining. The DTM 30m (only visible here in the holes as grayscale) fills the voids of the DSM 5m
The rasters I'm combining. Hillshade for DSM 5m
The rasters I'm combining. Hillshade for both rasters.
Showing the problem at the edges of the void fills
Showing the problem at the edges of the void fills #2