<?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: Client-side: all pixel values from ImageryLayer in Sketch geometry in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1189602#M77850</link>
    <description>&lt;P&gt;Another idea, not sure if this is possible:&lt;BR /&gt;Create an ImageryLayer I use just for the analysis (with the same raster source), which then gets clipped with a client-side rendering rule…and then get values of all pixels in that layer after the clip?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 20:13:39 GMT</pubDate>
    <dc:creator>DaveMcLaughlin</dc:creator>
    <dc:date>2022-07-05T20:13:39Z</dc:date>
    <item>
      <title>Client-side: all pixel values from ImageryLayer in Sketch geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1189590#M77849</link>
      <description>&lt;P&gt;I’m having trouble chaining this together, but here is what I’d like to accomplish:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Display a raster as an ImageryLayer from a 3rd-party server (I’ve got this)&lt;/LI&gt;&lt;LI&gt;Add the sketch widget and access a polygon the user draws (I think I have this one, too)&lt;/LI&gt;&lt;LI&gt;Access the pixel values of all pixels from the raster which are within the user-created polygon&lt;/LI&gt;&lt;LI&gt;Calculate/chart data based on the pixel values (check!)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It’s only step 3 that I’m stuck on. Do I somehow need to loop through every pixel in the current extent and test them individually using geometryEngine’s “within” before adding to an array?&lt;/P&gt;&lt;P&gt;I need to do this client-side and can’t perform a server-side rendering rule clip.&lt;/P&gt;&lt;P&gt;I appreciate any help you can provide!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 19:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1189590#M77849</guid>
      <dc:creator>DaveMcLaughlin</dc:creator>
      <dc:date>2022-07-05T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Client-side: all pixel values from ImageryLayer in Sketch geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1189602#M77850</link>
      <description>&lt;P&gt;Another idea, not sure if this is possible:&lt;BR /&gt;Create an ImageryLayer I use just for the analysis (with the same raster source), which then gets clipped with a client-side rendering rule…and then get values of all pixels in that layer after the clip?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 20:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1189602#M77850</guid>
      <dc:creator>DaveMcLaughlin</dc:creator>
      <dc:date>2022-07-05T20:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Client-side: all pixel values from ImageryLayer in Sketch geometry</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1196767#M78095</link>
      <description>&lt;P&gt;I don't have a running sample at hand, but I believe you should be able to do something like that using the following:&lt;/P&gt;&lt;P&gt;For ImageryLayers:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#fetchImage" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#fetchImage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For TiledImageryLayers:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#fetchPixels" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#fetchPixels&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use the extent of the sketched geometry as an input for these methods. As you describe above, you could then for each point / pixel in the response use the geometry engine to determine if it is part of the original geometry.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 14:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-all-pixel-values-from-imagerylayer-in/m-p/1196767#M78095</guid>
      <dc:creator>ArnoFiva</dc:creator>
      <dc:date>2022-07-28T14:35:47Z</dc:date>
    </item>
  </channel>
</rss>

