How to create a raster catalog layer

This article shows how to create a raster catalog layer from a geodatabase raster catalog and add it to a map.

Creating a raster catalog layer

See the following code example:
static void addRasterCatalogLayer(IActiveView activeView, IRasterCatalog
    rasterCatalog)throws Exception{
    //create a raster catalog layer
    IGdbRasterCatalogLayer rastercatalogLayer = new GdbRasterCatalogLayer();
    //Add it to map if the layer is valid
    if (rastercatalogLayer != null){
        IMap map = activeView.getFocusMap();

Development licensingDeployment licensing
ArcGIS for Desktop AdvancedArcGIS for Desktop Advanced
ArcGIS for Desktop StandardArcGIS for Desktop Standard
ArcGIS for Desktop BasicArcGIS for Desktop Basic
Engine Developer KitEngine