static void CreateUnmanagedRasterCatalog() { try { //Use geoprocessing to create the geodatabase, the raster catalog, and load our directory //to the raster catalog. Geoprocessor geoprocessor = new Geoprocessor(); //Create personal GDB in the TEMP directory CreatePersonalGDB createPersonalGDB = new CreatePersonalGDB(); createPersonalGDB.out_folder_path = outputFolder; createPersonalGDB.out_name = tempPGDB; geoprocessor.Execute(createPersonalGDB, null); //Create an unmanaged raster catalog in the newly created personal GDB CreateRasterCatalog createRasterCatalog = new CreateRasterCatalog(); createRasterCatalog.out_path = tempPGDBPath; createRasterCatalog.out_name = tempRasterCatalog; createRasterCatalog.raster_management_type = "unmanaged"; geoprocessor.Execute(createRasterCatalog, null); //Load data into the unmanaged raster catalog WorkspaceToRasterCatalog wsToRasterCatalog = new WorkspaceToRasterCatalog(); wsToRasterCatalog.in_raster_catalog = tempRasterCatalogPath; wsToRasterCatalog.in_workspace = inputFolder; wsToRasterCatalog.include_subdirectories = "INCLUDE_SUBDIRECTORIES"; geoprocessor.Execute(wsToRasterCatalog, null); } catch (Exception exc) { Console.WriteLine(exc.Message); } }