<?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 Re: How do I get a raster from the IGdbRasterCatalogLayer interface? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-a-raster-from-the/m-p/113004#M2953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've not really worked with raster catalogs much but from the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009t0000000n000000" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;: "A raster catalog is a collection of raster datasets defined in a table format in which each record represents an individual raster dataset in the catalog."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/GdbRasterCatalogLayerClass_Class/0012000000t9000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;GdbRasterCatalogLayer&lt;/A&gt;&lt;SPAN&gt; CoClass also implements serveral interfaces that will allow you to get access to the feature class or table, I used &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0012000004tp000000" rel="nofollow noopener noreferrer" target="_blank"&gt;IFeatureLayer&lt;/A&gt;&lt;SPAN&gt;. Then got a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IFeatureCursor_Interface/0025000002vs000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;IFeatureCursor &lt;/A&gt;&lt;SPAN&gt;to loop through the rows and get access to the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0025000006v6000000" rel="nofollow noopener noreferrer" target="_blank"&gt;IRasterValue&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some code for this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ILayer l = ArcMap.Document.FocusMap.get_Layer(0);
IFeatureClass fc = ((IFeatureLayer)l).FeatureClass;
IFeatureCursor fCur = fc.Search(null, false);
IFeature f = fCur.NextFeature();
IRasterValue2 rastVal = (IRasterValue2)f.get_Value(f.Fields.FindField("Raster"));
IRaster r = rastVal.Raster;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 06:44:43 GMT</pubDate>
    <dc:creator>JohnHauck</dc:creator>
    <dc:date>2021-12-11T06:44:43Z</dc:date>
    <item>
      <title>How do I get a raster from the IGdbRasterCatalogLayer interface?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-a-raster-from-the/m-p/113003#M2952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got a pair of raster catalogs sitting in a GDB. I want to extract the rasters individually and cast/wrap them into an IRasterLayer object so I can query them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; The problem is, I'm stumped on how to do this. The IRasterCatalogLayer interface would seem to be perfect for this kind of thing, but it is for RasterCatalogLayer class objects. The data I have seems to be GdbRasterCatalogLayer class objects which has a different interface. Specifically one that doesn't help me at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I thought maybe I could pull the data out of the feature class which the raster catalogs effectively are, but I can't work out what the raster data actually is. If I extract it to an object it doesn't seem to be an IRaster, IRasterDataset or IRasterLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 03:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-a-raster-from-the/m-p/113003#M2952</guid>
      <dc:creator>AllanMills</dc:creator>
      <dc:date>2012-06-13T03:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a raster from the IGdbRasterCatalogLayer interface?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-a-raster-from-the/m-p/113004#M2953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've not really worked with raster catalogs much but from the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//009t0000000n000000" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;: "A raster catalog is a collection of raster datasets defined in a table format in which each record represents an individual raster dataset in the catalog."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/GdbRasterCatalogLayerClass_Class/0012000000t9000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;GdbRasterCatalogLayer&lt;/A&gt;&lt;SPAN&gt; CoClass also implements serveral interfaces that will allow you to get access to the feature class or table, I used &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0012000004tp000000" rel="nofollow noopener noreferrer" target="_blank"&gt;IFeatureLayer&lt;/A&gt;&lt;SPAN&gt;. Then got a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IFeatureCursor_Interface/0025000002vs000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;IFeatureCursor &lt;/A&gt;&lt;SPAN&gt;to loop through the rows and get access to the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0025000006v6000000" rel="nofollow noopener noreferrer" target="_blank"&gt;IRasterValue&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some code for this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ILayer l = ArcMap.Document.FocusMap.get_Layer(0);
IFeatureClass fc = ((IFeatureLayer)l).FeatureClass;
IFeatureCursor fCur = fc.Search(null, false);
IFeature f = fCur.NextFeature();
IRasterValue2 rastVal = (IRasterValue2)f.get_Value(f.Fields.FindField("Raster"));
IRaster r = rastVal.Raster;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-get-a-raster-from-the/m-p/113004#M2953</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2021-12-11T06:44:43Z</dc:date>
    </item>
  </channel>
</rss>

