<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to assign a classified renderer to a GdbRasterCatalog layer in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145315#M3796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to assign a classified renderer to a GdbRasterCatalog&amp;nbsp; layer with no luck.&amp;nbsp; I have examined the samples that are provided, but have not been able to make it behave.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; I was hoping the classification renderer assignment would be as straight forward as it is with a standard stand alone raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&amp;nbsp; assigning a renderer in that fashion.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; I need to be able to do this programmatically through C#.&amp;nbsp; I understand that the classification renderer is not one of the ???default??? renderers associated with the GDBRasterCatalog layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have examined the IRasterCatalogRendererPicker bit, with no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any assistance would be greatly appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2011 13:26:48 GMT</pubDate>
    <dc:creator>ThomasCox</dc:creator>
    <dc:date>2011-05-19T13:26:48Z</dc:date>
    <item>
      <title>How to assign a classified renderer to a GdbRasterCatalog layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145315#M3796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to assign a classified renderer to a GdbRasterCatalog&amp;nbsp; layer with no luck.&amp;nbsp; I have examined the samples that are provided, but have not been able to make it behave.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; I was hoping the classification renderer assignment would be as straight forward as it is with a standard stand alone raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&amp;nbsp; assigning a renderer in that fashion.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; I need to be able to do this programmatically through C#.&amp;nbsp; I understand that the classification renderer is not one of the ???default??? renderers associated with the GDBRasterCatalog layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have examined the IRasterCatalogRendererPicker bit, with no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any assistance would be greatly appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 13:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145315#M3796</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2011-05-19T13:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a classified renderer to a GdbRasterCatalog layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145316#M3797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you not use IGeoFeatureLayer.Renderer to assign the renderer from the layer file to the layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 13:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145316#M3797</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-05-19T13:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a classified renderer to a GdbRasterCatalog layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145317#M3798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried your suggestion.&amp;nbsp; However, as soon as I finished the post, it occurred to me to build a new array, load it with the desired renderer from the layer file and then assign the renderers property fo the GdbRasterCatalog layer to the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IArray pArray = new ESRI.ArcGIS.esriSystem.Array();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pArray.Add(pRasterClassify);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGdbRasterCatalogLayer.Renderers = pArray;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your response. As I refine the the application I may migrate to the approach you suggested.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 19:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-assign-a-classified-renderer-to-a/m-p/145317#M3798</guid>
      <dc:creator>ThomasCox</dc:creator>
      <dc:date>2011-05-19T19:18:38Z</dc:date>
    </item>
  </channel>
</rss>

