<?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 ClassBreaksRenderer and save as layerfile in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-and-save-as-layerfile/m-p/48754#M1244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing a class in c#, which gets data from a filegeodatabase, calculates an algorithmic color ramp, applies it to the class breaks renderer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The renderer is applied to the GeoFeatureLAyer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;geoFeatureLayer.Renderer = bRenderer as IFeatureRenderer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the next step, this layer should be save as a layerfile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;ILayerFile lf = new LayerFileClass();&lt;BR /&gt;lf.New(outLyr);&lt;BR /&gt;lf.ReplaceContents((ILayer)geoFeatureLayer);&lt;BR /&gt;lf.Save(); &lt;BR /&gt;lf.Close();&lt;BR /&gt;lf = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layerfile is saved well, it can be opened in ArcMap. The legend looks good, all classes and colors are ok, but the fc doesn't show in the map. Opening the properties of this layer, the symbology says 'Single symbol', and under 'Quantities' there are only 'proportional symbols' and 'dot density' are available. The option 'graduated colors" isn't available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does somebody know, what I'm doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 09:00:55 GMT</pubDate>
    <dc:creator>MartinRinner</dc:creator>
    <dc:date>2013-02-07T09:00:55Z</dc:date>
    <item>
      <title>ClassBreaksRenderer and save as layerfile</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-and-save-as-layerfile/m-p/48754#M1244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing a class in c#, which gets data from a filegeodatabase, calculates an algorithmic color ramp, applies it to the class breaks renderer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The renderer is applied to the GeoFeatureLAyer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;geoFeatureLayer.Renderer = bRenderer as IFeatureRenderer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the next step, this layer should be save as a layerfile:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;ILayerFile lf = new LayerFileClass();&lt;BR /&gt;lf.New(outLyr);&lt;BR /&gt;lf.ReplaceContents((ILayer)geoFeatureLayer);&lt;BR /&gt;lf.Save(); &lt;BR /&gt;lf.Close();&lt;BR /&gt;lf = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layerfile is saved well, it can be opened in ArcMap. The legend looks good, all classes and colors are ok, but the fc doesn't show in the map. Opening the properties of this layer, the symbology says 'Single symbol', and under 'Quantities' there are only 'proportional symbols' and 'dot density' are available. The option 'graduated colors" isn't available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does somebody know, what I'm doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 09:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/classbreaksrenderer-and-save-as-layerfile/m-p/48754#M1244</guid>
      <dc:creator>MartinRinner</dc:creator>
      <dc:date>2013-02-07T09:00:55Z</dc:date>
    </item>
  </channel>
</rss>

