Mosaic raster datasets to a file raster format


PurposeThis sample shows how to create a file raster dataset or a personal geodatabase raster mosaic from all rasters stored in a folder and its subfolders. This approach is different from creating a geodatabase raster dataset mosaic due to a different implementation mechanism for handling a file mosaic and a geodatabase (file geodatabase and ArcSDE) raster mosaic.

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. Open the CreateFileRasterMosaic solution in Visual Studio.
  2. Review the source code and substitute the local variables with your data location.
  3. Compile and run.
  4. Check the output raster file. It will be a mosaic of all the raster datasets in the input folder and its subfolders.

CreateFileRasterMosaic.cs Source file containing all the steps to create a file mosaic.
Download the C# files
CreateFileRasterMosaic.vb Source file containing all the steps to create a file mosaic.
Download the VB.NET files

Download the files for all languages

See Also:

Sample: Mosaic raster datasets to a geodatabase raster dataset




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced
Engine Developer Kit Engine