This 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.
Language: C#, VB
Subject: Raster
Organization: Esri, http://www.esri.com
Date: 10/17/2019
ArcObjects SDK: 10.8
Visual Studio: 2017, 2019
.NET Target Framework: 4.5
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
- Open the CreateFileRasterMosaic solution in Visual Studio.
- Review the source code and substitute the local variables with your data location.
- Compile and run.
- Check the output raster file. It will be a mosaic of all the raster datasets in the input folder and its subfolders.
Sample: Mosaic raster datasets to a geodatabase raster dataset
Development licensing | Deployment licensing |
---|---|
ArcGIS Desktop Basic | ArcGIS Desktop Basic |
ArcGIS Desktop Standard | ArcGIS Desktop Standard |
ArcGIS Desktop Advanced | ArcGIS Desktop Advanced |
Engine Developer Kit | Engine |