Create a raster catalog using the geoprocessor


PurposeThis sample uses the geoprocessor class in conjunction with CreateRasterCatalog and WorkspaceToRasterCatalog geoprocessing tool classes to create a raster catalog, and load a directory of rasters to the raster catalog. It demonstrates the recommended approach for creating and loading raster catalogs from rasters in a folder.

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 solution file in Visual Studio.
  2. Modify the data paths to your input data path and output geodatabase.
  3. Run the sample.
  4. Browse to the output geodatabase and refresh the connection. The new raster catalog with all the rasters from the input directory appears.

CreateRasterCatalog_GP.cs Source code showing how to create a raster catalog and load rasters using geoprocessing.
Download the C# files
CreateRasterCatalog_GP.vb Source code showing how to create a raster catalog and load rasters using geoprocessing.
Download the VB.NET files

Download the files for all languages




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