Merge DEM layers with gaps

Last Published: April 25, 2020


In some cases, there are gaps between multiple DEM layers when viewed in ArcMap. (See image below.) When merging the DEM layers, the gaps must be filled.
Multiple DEM layers with gaps.

The following instructions describe how to merge multiple DEM layers and fill the gaps between the layers in ArcMAp.


There are two methods that can be used to merge the DEM layers with gaps: using the IDW tool or using the elevation void fill function. If the gaps between the rasters are large, it is recommended to use the elevation void fill function.

Using the IDW tool

The IDW tool requires a Spatial Analyst or 3D Analyst license.
  1. Merge the DEM layers.
    1. Use the Raster to Point tool to convert the DEM layers to point features.
    2. Use the Merge tool to combine the point feature layers in Step 1 (a).
  2. Use the IDW tool.
    1. Navigate to System Toolboxes > 3D Analyst Tools > Raster Interpolation > IDW.
    2. Use the merged layer in Step 1 (b) as the input point features.
    3. Select grid_code for the Z value field.
    4. Change the Output cell size by following the cell size of the DEM raster.
    5. Click OK. A new raster layer is created.

Using the Elevation Void Fill function

  1. In the Image Analysis window, select a raster layer, and click the Add Function Add Function button is the f x icon. button. This opens the Function Template Editor window.
  2. Right-click the name of the raster, and click Insert Function > Elevation Void Fill Function.
  3. In the Raster Function Properties window, set the parameters for the input raster, short range IDW radius, and maximum void width. For more information on the Elevation Void Fill function parameters, refer to: Elevation Void Fill function.

    Select the input raster, specify the range radius and maximum void width.
  4. Click OK. The DEM layers are merged.

    New DEM layer.

Article ID:000018483

  • ArcMap

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options