<?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 interpolation with a renderer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-interpolation-with-a-renderer/m-p/1293873#M81268</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My javascript map properly display an imageryLayer coming from an image server:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nicolas__0-1685367547374.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71881i179E60A1BC22A617/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nicolas__0-1685367547374.png" alt="Nicolas__0-1685367547374.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, the layer in displayed with bilinear interpoaltion as asked in my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layerTMOY_QUOT = new ImageryLayer({
    url: URL_TMOY_QUOT,
    interpolation: "bilinear"
});
map.add(layerTMOY_QUOT);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if I add a renderer to the imagery layer, the dsplayed image is no longer interpolated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nicolas__2-1685367825053.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71883iC05E195942A0787C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nicolas__2-1685367825053.png" alt="Nicolas__2-1685367825053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see all the individual pixels. It seems that the interpolation properties is now ignored despite what I wrote in my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layerTMOY_QUOT = new ImageryLayer({
    url: URL_TMOY_QUOT,
    renderer: rendererTemperature,
    interpolation: "bilinear",
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use both a renderer and interpolation of the displayed pixels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Here is the code for the renderer,in case it could be useful :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let rendererTemperature = new RasterStretchRenderer({
    statistics: [[-50, 40, 0, 0]],
    stretchType: "min-max",
    colorRamp: new MultipartColorRamp({
        colorRamps: [
            { algorithm: "cie-lab", fromColor: new Color([255, 0, 192, 255]), toColor: new Color([255, 128, 255, 255]) },
            { algorithm: "cie-lab", fromColor: new Color([255, 128, 255, 255]), toColor: new Color([208, 254, 254, 255]) },
            { algorithm: "cie-lab", fromColor: new Color([208, 254, 254, 255]), toColor: new Color([104, 127, 178, 255]) },
        ]
    })
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 14:13:01 GMT</pubDate>
    <dc:creator>Nicolas_</dc:creator>
    <dc:date>2023-05-29T14:13:01Z</dc:date>
    <item>
      <title>ImageryLayer interpolation with a renderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-interpolation-with-a-renderer/m-p/1293873#M81268</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My javascript map properly display an imageryLayer coming from an image server:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nicolas__0-1685367547374.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71881i179E60A1BC22A617/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nicolas__0-1685367547374.png" alt="Nicolas__0-1685367547374.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, the layer in displayed with bilinear interpoaltion as asked in my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layerTMOY_QUOT = new ImageryLayer({
    url: URL_TMOY_QUOT,
    interpolation: "bilinear"
});
map.add(layerTMOY_QUOT);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if I add a renderer to the imagery layer, the dsplayed image is no longer interpolated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nicolas__2-1685367825053.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71883iC05E195942A0787C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nicolas__2-1685367825053.png" alt="Nicolas__2-1685367825053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see all the individual pixels. It seems that the interpolation properties is now ignored despite what I wrote in my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layerTMOY_QUOT = new ImageryLayer({
    url: URL_TMOY_QUOT,
    renderer: rendererTemperature,
    interpolation: "bilinear",
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use both a renderer and interpolation of the displayed pixels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Here is the code for the renderer,in case it could be useful :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let rendererTemperature = new RasterStretchRenderer({
    statistics: [[-50, 40, 0, 0]],
    stretchType: "min-max",
    colorRamp: new MultipartColorRamp({
        colorRamps: [
            { algorithm: "cie-lab", fromColor: new Color([255, 0, 192, 255]), toColor: new Color([255, 128, 255, 255]) },
            { algorithm: "cie-lab", fromColor: new Color([255, 128, 255, 255]), toColor: new Color([208, 254, 254, 255]) },
            { algorithm: "cie-lab", fromColor: new Color([208, 254, 254, 255]), toColor: new Color([104, 127, 178, 255]) },
        ]
    })
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 14:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-interpolation-with-a-renderer/m-p/1293873#M81268</guid>
      <dc:creator>Nicolas_</dc:creator>
      <dc:date>2023-05-29T14:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: ImageryLayer interpolation with a renderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-interpolation-with-a-renderer/m-p/1293880#M81269</link>
      <description>&lt;P&gt;Ok I found a solution. Forcing the format of the ImageryLayer to be "lerc" show the images as interpolated again:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layerTMOY_QUOT = new ImageryLayer({
    url: URL_TMOY_QUOT,
    renderer: rendererTemperature,
    format: "lerc",
    interpolation: "bilinear"
});&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 May 2023 15:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/imagerylayer-interpolation-with-a-renderer/m-p/1293880#M81269</guid>
      <dc:creator>Nicolas_</dc:creator>
      <dc:date>2023-05-29T15:19:51Z</dc:date>
    </item>
  </channel>
</rss>

