How to assign a classified renderer to a GdbRasterCatalog layer

Discussion created by tomas1 on May 19, 2011
Latest reply on May 19, 2011 by tomas1
I am trying to assign a classified renderer to a GdbRasterCatalog  layer with no luck.  I have examined the samples that are provided, but have not been able to make it behave.

I have developed code that allows a user to specify a date range, retrieve GRIDS falling within the range, build, and populate a GdbRasterCatalog, and add it to the ArcMap session.  I was hoping the classification renderer assignment would be as straight forward as it is with a standard stand alone raster.

For the portion of the application that retrieves the stand alone GRIDS, it is pretty straight forward to assign an existing renderer derived from a .lyr file that contains the proper renderer classification definition. The GdbRasterCatalog apparently does not offer the option of  assigning a renderer in that fashion. 

Through the ArcMap interface, I am able to go through the process of adding the classified renderer type and removing the other non needed rendering types and building the appropriate classified renderer.  I need to be able to do this programmatically through C#.  I understand that the classification renderer is not one of the ???default??? renderers associated with the GDBRasterCatalog layer.

I have examined the IRasterCatalogRendererPicker bit, with no luck.

If need be, I can go through the effort of building the classified renderer directly from the catalog and abandon trying to use the renderer derived from the .lyr file. However, I still need to know how to assign the renderer to the GdbCatalog layer.

Any assistance would be greatly appreciated