<?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 field with esriFieldType.esriFieldTypeRaster cannot be added to ITable in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/field-with-esrifieldtype-esrifieldtyperaster/m-p/565304#M15227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to add a new Field to a standalone table with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Field field = new Field();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFieldEdit2 fieldEdit = (IFieldEdit2)field;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; fieldEdit.Name_2 = name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldEdit.Type_2= esriFieldType.esriFieldTypeRaster ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IRasterDef rasterDef = new RasterDefClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; rasterDef.Description = "Raster Field";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rasterDef.IsManaged = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldEdit.RasterDef = rasterDef;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; table.AddField((IField)fieldEdit);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i throws the following exception:&amp;nbsp; {"Only one raster column is supported in this operation"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this only happens when the type of the field is " esriFieldType.esriFieldTypeRaster " with other types everything works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help will be appreciated &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 17:58:20 GMT</pubDate>
    <dc:creator>cristiansanabria</dc:creator>
    <dc:date>2012-10-26T17:58:20Z</dc:date>
    <item>
      <title>field with esriFieldType.esriFieldTypeRaster cannot be added to ITable</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/field-with-esrifieldtype-esrifieldtyperaster/m-p/565304#M15227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to add a new Field to a standalone table with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Field field = new Field();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFieldEdit2 fieldEdit = (IFieldEdit2)field;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; fieldEdit.Name_2 = name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldEdit.Type_2= esriFieldType.esriFieldTypeRaster ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IRasterDef rasterDef = new RasterDefClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; rasterDef.Description = "Raster Field";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rasterDef.IsManaged = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldEdit.RasterDef = rasterDef;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; table.AddField((IField)fieldEdit);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i throws the following exception:&amp;nbsp; {"Only one raster column is supported in this operation"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this only happens when the type of the field is " esriFieldType.esriFieldTypeRaster " with other types everything works&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help will be appreciated &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 17:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/field-with-esrifieldtype-esrifieldtyperaster/m-p/565304#M15227</guid>
      <dc:creator>cristiansanabria</dc:creator>
      <dc:date>2012-10-26T17:58:20Z</dc:date>
    </item>
  </channel>
</rss>

