Create a custom default raster catalog renderer


PurposeThis sample shows how to customize the default raster catalog renderer. This sample sets two available renderers—the RGB and stretch renderers—then displays the single band raster datasets with a defined stretch renderer and multiple band raster datasets with a defined RGB renderer.

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, open the solution file, and compile the program. A dynamic-link library (DLL) file is generated and registered in the ESRI RasterCatalogRendererPickers component category.
  2. Run category.exe from the ArcGIS bin directory to confirm that the custom DLL was added to that category.
  3. Start ArcMap and add a raster catalog with multiple bands (> 4) or single band raster datasets to test.
  4. To return to the ArcGIS built-in default renderer for raster catalogs, use the esriregasm.exe utility from the Program Files\Common Files\ArcGIS\bin folder to unregister the DLL.

CustomRasterCatalogRenderer_CSharp.cs Source file that implements the raster catalog renderer picker class.
Download the C# files
CustomRasterCatalogRenderer_VBNET.vb Source file that implements the raster catalog renderer picker class.
Download the VB.NET files

Download the files for all languages




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