Create a Mosaic dataset


PurposeThis topic shows how to create a Mosaic dataset, add rasters to it using one of the built-in raster types, calculate cell size ranges, build a boundary, and define and build overviews for it.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio and open the solution file.
  2. Edit the strings in the "Setup MD Test Parameters" region to specify the parameters that control where to create the Mosaic dataset, where to add data from, the raster type to use, and so on.
  3. Compile and run the program.
  4. If the program succeeds, the console shows a "Success" message. If an error occurs, it shows on the console window.
  5. Load the created Mosaic dataset into ArcMap or ArcCatalog.

CreateMosaicDataset.cs Main source file that contains the components of the sample, including licensing code.
Download the C# files
CreateMosaicDataset.vb Main source file that contains the components of the sample, including licensing code.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo
Engine Developer Kit Engine Runtime