<?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: Converting 4-band raster to 3-band.  How? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/converting-4-band-raster-to-3-band-nbsp-how/m-p/528341#M14261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can answer this question myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem wasn't with the ExtractByMask function, it was with the Geoprocessor Resample that was being done right afterwards.&amp;nbsp; (My mistake was in not catching the error properly.)&amp;nbsp; Once confirming that the extract was succeeding, it was fairly simple to use the CompositeBands function to use the 3-bands of interest from the extracted 4-bands and then feed the results of that to the Resample function. The results of the Resample function are as they should be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 22:07:35 GMT</pubDate>
    <dc:creator>RobChasan</dc:creator>
    <dc:date>2013-09-24T22:07:35Z</dc:date>
    <item>
      <title>Converting 4-band raster to 3-band.  How?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/converting-4-band-raster-to-3-band-nbsp-how/m-p/528340#M14260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using ArcMap 10.1/ C#/ ArcObjects&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within an add-in, the program is using the ExtractByMask Geoprocessor function to create tiffs from sde raster layers.&amp;nbsp; It works fine when working against 1 and 3 band rasters, but when a 4-band raster is used against it, it produces nothing.&amp;nbsp; Seems like the CompositeBands function should be suitable for converting the 4-band raster to 3-band, but I cannot figure out how to create the input raster for it.&amp;nbsp; Can someone provide a either a code snippet or a clue as to a good way to produce the 3-band input programmatically? Seems like I'm missing something simple...&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:32:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/converting-4-band-raster-to-3-band-nbsp-how/m-p/528340#M14260</guid>
      <dc:creator>RobChasan</dc:creator>
      <dc:date>2013-09-24T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting 4-band raster to 3-band.  How?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/converting-4-band-raster-to-3-band-nbsp-how/m-p/528341#M14261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can answer this question myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem wasn't with the ExtractByMask function, it was with the Geoprocessor Resample that was being done right afterwards.&amp;nbsp; (My mistake was in not catching the error properly.)&amp;nbsp; Once confirming that the extract was succeeding, it was fairly simple to use the CompositeBands function to use the 3-bands of interest from the extracted 4-bands and then feed the results of that to the Resample function. The results of the Resample function are as they should be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 22:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/converting-4-band-raster-to-3-band-nbsp-how/m-p/528341#M14261</guid>
      <dc:creator>RobChasan</dc:creator>
      <dc:date>2013-09-24T22:07:35Z</dc:date>
    </item>
  </channel>
</rss>

