<?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 Image Service Filtering in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234941#M21889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I added a mosaicrule to filter the image service for the single raster I am interested in. Same error in console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 12:33:55 GMT</pubDate>
    <dc:creator>SimonJackson</dc:creator>
    <dc:date>2017-06-22T12:33:55Z</dc:date>
    <item>
      <title>Client Side Image Service Filtering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234939#M21887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to replicate&amp;nbsp;this amazing&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jssamples/layers_raster.html"&gt;Raster Layer Sample&lt;/A&gt; with my own image service. &amp;nbsp;My image service (&lt;A href="https://pastebin.com/9Y3i7rCp"&gt;paste of REST details&lt;/A&gt;) is &lt;STRONG&gt;not&lt;/STRONG&gt; multidimensional, and is from a mosaic dataset containing one raster dataset &lt;SPAN style="background-color: #ffffff;"&gt;which has a value between 0-100. This image service performs fast when viewing in the Map Viewer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://jsfiddle.net/jakc/hp0dj1jn/"&gt;Here is a JSFiddle&lt;/A&gt; of my&amp;nbsp;modified sample, but using a &lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/earthquakedemoelevation/ImageServer"&gt;public image service&lt;/A&gt;. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The initial load of the app is sluggish (even more so with my image service).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Something that does not happen with the above sample, but happens with my service is I keep getting errors in the console. &amp;nbsp;I am having trouble trying to identify what the problem is here, sure it is simple. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Let me know if you need more info from my end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-size: 12px;"&gt;init.js:113 TypeError: Cannot read property '0' of undefined&lt;BR /&gt; at Object.maskPixels [as pixelFilter] (filterStrain.html:204)&lt;BR /&gt; at Object._setPixelData (ImageServiceLayerMixin.js:41)&lt;BR /&gt; at Object.redraw (ImageServiceLayerMixin.js:27)&lt;BR /&gt; at setPixelFilter (filterStrain.html:226)&lt;BR /&gt; at Object.maskPixels [as pixelFilter] (filterStrain.html:174)&lt;BR /&gt; at Object._setPixelData (ImageServiceLayerMixin.js:41)&lt;BR /&gt; at Object._requestDataHandler (ImageServiceLayerMixin.js:41)&lt;BR /&gt; at init.js:63&lt;BR /&gt; at Object._resolve (Raster.js:9)&lt;BR /&gt; at Raster.js:7 "TypeError: Cannot read property '0' of undefined&lt;BR /&gt;&lt;SPAN&gt; at Object.maskPixels [as pixelFilter] (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Ftelstra%2FfilterStrain.html%3A204%3A32" rel="nofollow" target="_blank"&gt;http://localhost/telstra/filterStrain.html:204:32&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object._setPixelData (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.20%2Fesri%2Flayers%2FImageServiceLayerMixin.js%3A41%3A370" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.20/esri/layers/ImageServiceLayerMixin.js:41:370&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.redraw (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.20%2Fesri%2Flayers%2FImageServiceLayerMixin.js%3A27%3A395" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.20/esri/layers/ImageServiceLayerMixin.js:27:395&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at setPixelFilter (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Ftelstra%2FfilterStrain.html%3A226%3A17" rel="nofollow" target="_blank"&gt;http://localhost/telstra/filterStrain.html:226:17&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.maskPixels [as pixelFilter] (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Ftelstra%2FfilterStrain.html%3A174%3A7" rel="nofollow" target="_blank"&gt;http://localhost/telstra/filterStrain.html:174:7&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object._setPixelData (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.20%2Fesri%2Flayers%2FImageServiceLayerMixin.js%3A41%3A370" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.20/esri/layers/ImageServiceLayerMixin.js:41:370&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object._requestDataHandler (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.20%2Fesri%2Flayers%2FImageServiceLayerMixin.js%3A41%3A276" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.20/esri/layers/ImageServiceLayerMixin.js:41:276&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.20%2Finit.js%3A63%3A277" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.20/init.js:63:277&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object._resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.20%2Fesri%2Flayers%2FRaster.js%3A9%3A352" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.20/esri/layers/Raster.js:9:352&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.20%2Fesri%2Flayers%2FRaster.js%3A7%3A61" rel="nofollow" target="_blank"&gt;http://js.arcgis.com/3.20/esri/layers/Raster.js:7:61&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/357525_OpenMeInBrowser_AnimatedGIF.gif" style="width: 620px; height: 394px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2017 01:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234939#M21887</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2017-06-18T01:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Client Side Image Service Filtering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234940#M21888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am closer. &amp;nbsp;&lt;/P&gt;&lt;P&gt;My Mosaic Dataset that I have published actually contains 4 overlapping rasters.&lt;/P&gt;&lt;P&gt;If I publish a Mosaic Dataset with just one of the rasters = works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I assume I need to apply a filter to my Image Service parameters to only pull NAME = 'therasternameiwant'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues on how to do this? &amp;nbsp;Can perform a filter at the WebMap level, but this sample does not use a WebMap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 05:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234940#M21888</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2017-06-22T05:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Client Side Image Service Filtering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234941#M21889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I added a mosaicrule to filter the image service for the single raster I am interested in. Same error in console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/client-side-image-service-filtering/m-p/234941#M21889</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2017-06-22T12:33:55Z</dc:date>
    </item>
  </channel>
</rss>

