<?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 ImageryLayer RasterFunction &amp;quot;Remap&amp;quot; using geometries in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-rasterfunction-quot-remap-quot-using/m-p/1195733#M78057</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm attempting to remap pixel values inside a specific geometry using a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html" target="_blank" rel="noopener"&gt;RasterFunction&lt;/A&gt; with the raster function object&amp;nbsp;called "Remap". According to the Remap arguments and description on the &lt;A href="https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm" target="_blank" rel="noopener"&gt;raster function object&lt;/A&gt; page, I should be able to "use the Remap function with geometry values" using the argument "GeometryType" and "Geometries". Of course, I'm doing all this in the ArcGIS Javascript API.&lt;/P&gt;&lt;P data-unlink="true"&gt;As you'll see in this &lt;A href="https://codepen.io/matt-e-king/pen/WNzELWj" target="_blank" rel="noopener"&gt;codepen&lt;/A&gt;&amp;nbsp;(give it a second to load, you should see a green square), I'm chaining multiple RasterFunctions together. The first two work wonderfully: 1) asking for a server side render function by name "Slope Degrees" 2) Using the "Clip" function, also found in the &lt;A href="https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm" target="_self"&gt;raster function object page&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;But when I attempt to Remap by geometry (as explained above), it seems to ignore those arguments and applies the Remap to the whole clipped raster. If fact, I can put complete nonsense values inside GeometryType/Geometries and it doesn't through an "invalid input" error.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;(as a test I'm remapping any pixel value between 0-100 to be 50 and then colorizing all pixels with the value 50 to green, but ideally only inside that specific polygon).&lt;/P&gt;&lt;P data-unlink="true"&gt;Am I misunderstanding the use of the GeometryType/Geometries arguments with the Remap function? Or are these function arguments not supported in the latest ArcGIS Javascript API? Or does this have something to do with how the layer is published/versioned on the Image Server?&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 04:39:19 GMT</pubDate>
    <dc:creator>matteking</dc:creator>
    <dc:date>2022-07-26T04:39:19Z</dc:date>
    <item>
      <title>ImageryLayer RasterFunction "Remap" using geometries</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-rasterfunction-quot-remap-quot-using/m-p/1195733#M78057</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm attempting to remap pixel values inside a specific geometry using a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html" target="_blank" rel="noopener"&gt;RasterFunction&lt;/A&gt; with the raster function object&amp;nbsp;called "Remap". According to the Remap arguments and description on the &lt;A href="https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm" target="_blank" rel="noopener"&gt;raster function object&lt;/A&gt; page, I should be able to "use the Remap function with geometry values" using the argument "GeometryType" and "Geometries". Of course, I'm doing all this in the ArcGIS Javascript API.&lt;/P&gt;&lt;P data-unlink="true"&gt;As you'll see in this &lt;A href="https://codepen.io/matt-e-king/pen/WNzELWj" target="_blank" rel="noopener"&gt;codepen&lt;/A&gt;&amp;nbsp;(give it a second to load, you should see a green square), I'm chaining multiple RasterFunctions together. The first two work wonderfully: 1) asking for a server side render function by name "Slope Degrees" 2) Using the "Clip" function, also found in the &lt;A href="https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm" target="_self"&gt;raster function object page&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;But when I attempt to Remap by geometry (as explained above), it seems to ignore those arguments and applies the Remap to the whole clipped raster. If fact, I can put complete nonsense values inside GeometryType/Geometries and it doesn't through an "invalid input" error.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;(as a test I'm remapping any pixel value between 0-100 to be 50 and then colorizing all pixels with the value 50 to green, but ideally only inside that specific polygon).&lt;/P&gt;&lt;P data-unlink="true"&gt;Am I misunderstanding the use of the GeometryType/Geometries arguments with the Remap function? Or are these function arguments not supported in the latest ArcGIS Javascript API? Or does this have something to do with how the layer is published/versioned on the Image Server?&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 04:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-rasterfunction-quot-remap-quot-using/m-p/1195733#M78057</guid>
      <dc:creator>matteking</dc:creator>
      <dc:date>2022-07-26T04:39:19Z</dc:date>
    </item>
  </channel>
</rss>

