<?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: Problem applying Colormap raster function to image service in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-applying-colormap-raster-function-to-image/m-p/608255#M13547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I was able to answer my own question. It turns out that by turning off the "Convert colormap to RGB" flag under ArcGIS Server Manager &amp;gt; MYSERVICE &amp;gt; Parameters &amp;gt; Functions and restarting the image service, I was able to get my new Colormap applied to the Image Service. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps someone else out there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 21:48:35 GMT</pubDate>
    <dc:creator>GerardoArmendariz</dc:creator>
    <dc:date>2012-11-27T21:48:35Z</dc:date>
    <item>
      <title>Problem applying Colormap raster function to image service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-applying-colormap-raster-function-to-image/m-p/608254#M13546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a hard time applying a Colormap to my image service.&amp;nbsp; I have tried other functions (Hillshade and NDVI) and they do work on my service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on this API reference, my code should work: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/rest/apiref/israsterfunctions.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/rest/apiref/israsterfunctions.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how I am creating my Colormap RasterFunction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function resetColormapByExtent():void{&amp;nbsp; var newCM:Array;&amp;nbsp; var rasterArgs:Object = {};&amp;nbsp;&amp;nbsp;&amp;nbsp; newCM =&amp;nbsp; new Array( &amp;nbsp; [0,97,21,13], &amp;nbsp; [10,99,25,14], &amp;nbsp; [20,102,28,15], &amp;nbsp; [30,105,30,16], &amp;nbsp; [40,107,36,18], &amp;nbsp; [50,110,38,19], &amp;nbsp; [60,112,42,20], &amp;nbsp; [70,115,47,22], &amp;nbsp; [80,117,50,23], &amp;nbsp; [90,120,54,25], &amp;nbsp; [100,122,57,27]);&amp;nbsp;&amp;nbsp;&amp;nbsp; rasterArgs["Colormap"] = newCM;&amp;nbsp;&amp;nbsp;&amp;nbsp; var rasterFunction:RasterFunction = new RasterFunction();&amp;nbsp; rasterFunction.arguments = rasterArgs;&amp;nbsp; rasterFunction.functionName = "Colormap";&amp;nbsp; imageLayer.renderingRule = rasterFunction; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I execute this code the image service layer disappears. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked for a specific Colormap examples and I have not found one yet.&amp;nbsp; Has anyone encountered this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 17:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-applying-colormap-raster-function-to-image/m-p/608254#M13546</guid>
      <dc:creator>GerardoArmendariz</dc:creator>
      <dc:date>2012-11-27T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem applying Colormap raster function to image service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-applying-colormap-raster-function-to-image/m-p/608255#M13547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I was able to answer my own question. It turns out that by turning off the "Convert colormap to RGB" flag under ArcGIS Server Manager &amp;gt; MYSERVICE &amp;gt; Parameters &amp;gt; Functions and restarting the image service, I was able to get my new Colormap applied to the Image Service. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps someone else out there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 21:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/problem-applying-colormap-raster-function-to-image/m-p/608255#M13547</guid>
      <dc:creator>GerardoArmendariz</dc:creator>
      <dc:date>2012-11-27T21:48:35Z</dc:date>
    </item>
  </channel>
</rss>

