PROBLEM

Merging rasters intersected by the International Date Line produces a gap

Last Published: April 25, 2020

Description

Merging rasters intersected by the International Date Line (IDL) in a geographic coordinate system produces an output raster with a gap. The following image is an example of this:

An image of a merged raster with the International Date Line splitting the raster

Cause

When ArcMap displays raster data in a geographic coordinate system, there is a discontinuity at the IDL. Identifying and handling rasters that intersect the IDL may have an impact on merged rasters. For more information on what happens to data that intersect the IDL, refer to this document: What happens to features at +/-180 (dateline)?

Solution or Workaround

The following instructions describe how to merge rasters that intersect the IDL without producing a gap in the output raster.

  1. Use the Project Raster tool to project the rasters to a projected coordinate system. In the Catalog window, navigate to Data Management Tools > Projections and Transformations > Raster > Project Raster. Repeat this step for all rasters.
    1. Under Input Raster, browse to the raster to project.
    2. Under Output Raster Dataset, set a name and location for the projected raster.
    3. Under Output Coordinate System, select a projected coordinate system for the raster.
      An image of the Project Raster dialog box.
    4. Click OK. The projected raster is added to the map.
  2. Create a mosaic dataset in a file geodatabase. Add the projected rasters to this dataset. Refer to Creating mosaic dataset basics for these steps. 

    Select the same Coordinate System parameter used for the projected rasters when creating the mosaic dataset.
    An image of the Create Mosaic Dataset dialog box. 
    The following image displays the rasters added to the mosaic dataset:
    An image of the rasters added to the created mosaic dataset.
  3. Use the Calculate Statistics tool to properly stretch and symbolize the raster data for display. In the Catalog window, right-click the mosaic dataset, and click Enhance > Calculate Statistics to open the Calculate Statistics dialog box.
    1. Under Input Raster Dataset, browse to the mosaic dataset that stores the projected rasters.
      An image of the Calculate Statistics dialog box.
    2. Leave the other parameters in the Calculate Statistics dialog box at the default settings. Click OK.
  4. Use the Define Overviews and Build Overviews tools to define and build overviews on the mosaic dataset. 
    1. In the Catalog window, right-click the mosaic dataset containing the raster datasets, and click Optimize > Define Overviews.
    2. Leave the other parameters in the Define Overviews dialog box at the default settings. Click OK.
    3. In the Catalog window, right-click the mosaic dataset containing the raster datasets, and click Optimize > Build Overviews.
    4. Leave the other parameters in the Build Overviews dialog box at the default settings. Click OK.
    The following image displays a properly stretched raster dataset that honors the default mosaic dataset settings:

    An image of the mosaic dataset with defined and built overviews.
  1. This step is optional. For a better representation of raster dataset elevations, add the Hillshade function to the mosaic dataset using the Image Analysis window. Skip this step and proceed to Step 6 to export the output raster dataset from Step 4 to a desired raster format without the Hillshade function.
    1. Click Windows > Image Analysis.
    2. In the Image Analysis window, click Add Function Add Function icon.
    3. In the Function Template Editor dialog box, right-click the mosaic dataset, and click Insert Function > Hillshade Function.
      An image of the Function Template Editor dialog box and the Hillshade Function option.
    4. Leave the other parameters in the Raster Function Properties dialog box at the default settings, and click OK.
    5. Click OK to close the Function Template Editor dialog box.

      The following image displays the hillshaded raster dataset:
      An image of the hillshaded raster dataset.
  2. Export the raster dataset to a desired file format using the Export button on the Image Analysis window. Refer to Using the Export button on the Image Analysis window for these steps.

Article ID:000015770

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options