<?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: computeHistograms behavior changed beginning in 4.30/possible bug? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1576430#M86391</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue will be fixed in our next version (version 4.32).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 15:28:15 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2025-01-16T15:28:15Z</dc:date>
    <item>
      <title>computeHistograms behavior changed beginning in 4.30/possible bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1575012#M86361</link>
      <description>&lt;P&gt;I recently upgraded our application from 4.29 to 4.31 and then noticed the results from computeHistograms had changed even though the supplied values did not. When calling computeHistograms in 4.29 with the following method signature I have the following parameters in the network tab:(f, geometryType, geometry, mosaicRule,&amp;nbsp;renderingRule, and pixelSize).&amp;nbsp; in 4.30 the renderingRule is not supplied in the network parameters being sent to the server.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;imageServiceLayer&lt;/SPAN&gt;.computeHistograms({ &lt;SPAN&gt;geometry&lt;/SPAN&gt;: &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;geometries&lt;/SPAN&gt;, &lt;SPAN&gt;pixelSize&lt;/SPAN&gt;: &lt;SPAN&gt;pixelSize&lt;/SPAN&gt;})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation for ImageHistogramParameters it states the rasterFunction should default to the imageryLayer settings. It seems to be completely omitted. I'm assuming this is a bug?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Specifies the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html" target="_blank"&gt;raster function&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;from which to compute the statistics and histogram. The rasterFunction defines how the image should be processed. When a renderingRule is not specified, the current settings on the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html" target="_blank"&gt;ImageryLayer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jan 2025 19:40:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1575012#M86361</guid>
      <dc:creator>EricDurbin</dc:creator>
      <dc:date>2025-01-13T19:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: computeHistograms behavior changed beginning in 4.30/possible bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1575112#M86368</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;It appears that the computeHistograms method isn't gathering all the necessary settings from the layer when it's autocast (i.e., when an object is passed directly to the method).&lt;/P&gt;&lt;P&gt;To resolve this, please create a new ImageHistogramParameters instance, rather than relying on autocasting. You can do this with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const params = new ImageHistogramParameters({
  geometry: view.extent,
  pixelSize: pixelSize
});&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Jan 2025 21:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1575112#M86368</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2025-01-13T21:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: computeHistograms behavior changed beginning in 4.30/possible bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1576430#M86391</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue will be fixed in our next version (version 4.32).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 15:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/computehistograms-behavior-changed-beginning-in-4/m-p/1576430#M86391</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2025-01-16T15:28:15Z</dc:date>
    </item>
  </channel>
</rss>

