<?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 Identify on Raster Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511531#M47651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an issue obtaining attribute data off of a raster layer from my map service.&amp;nbsp; The attribute data is retrieved but when I call attributes in the code, it claims it is undefined.&amp;nbsp; If I call idResults[0].value, I get the value of -1842.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code trying to obtain the attributes and returns nothing.&amp;nbsp; Calling idResults[0].attributes produces undefined:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyTask.execute(identifyParams, function(idResults){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; alert(idResults[0].attributes['Pixel Value']);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The identify task returns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"results":[{"layerId":0,"layerName":"phm_7605_wma","value":"-1842","displayFieldName":"","attributes":{"Class value":"359","Pixel Value":"-1842","Rowid":"2172","COUNT":"7277"},"geometryType":"esriGeometryPoint","geometry":{"x":-10942189.7542115,"y":4446207.90340335,"spatialReference":{"wkid":102100}}}]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 13:44:09 GMT</pubDate>
    <dc:creator>JoshObrecht</dc:creator>
    <dc:date>2010-11-05T13:44:09Z</dc:date>
    <item>
      <title>Identify on Raster Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511531#M47651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an issue obtaining attribute data off of a raster layer from my map service.&amp;nbsp; The attribute data is retrieved but when I call attributes in the code, it claims it is undefined.&amp;nbsp; If I call idResults[0].value, I get the value of -1842.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code trying to obtain the attributes and returns nothing.&amp;nbsp; Calling idResults[0].attributes produces undefined:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyTask.execute(identifyParams, function(idResults){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; alert(idResults[0].attributes['Pixel Value']);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The identify task returns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"results":[{"layerId":0,"layerName":"phm_7605_wma","value":"-1842","displayFieldName":"","attributes":{"Class value":"359","Pixel Value":"-1842","Rowid":"2172","COUNT":"7277"},"geometryType":"esriGeometryPoint","geometry":{"x":-10942189.7542115,"y":4446207.90340335,"spatialReference":{"wkid":102100}}}]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 13:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511531#M47651</guid>
      <dc:creator>JoshObrecht</dc:creator>
      <dc:date>2010-11-05T13:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identify on Raster Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511532#M47652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;maybe : alert(idResults[0]['Pixel Value']);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i had a similar problem not long ago working with the dojo dataStore object&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 19:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511532#M47652</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-11-08T19:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Identify on Raster Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511533#M47653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi - old thread revival - I'm trying to get the Id task to get values from a DTM stored as a raster/grid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ID task brings back data, but doesn't return layername or field names - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;displayFieldName&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;""&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;feature&lt;/SPAN&gt;: Object&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;attributes&lt;/SPAN&gt;: Object&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;Pixel Value&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"98.396004"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;Stretched value&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"92"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;__proto__&lt;/SPAN&gt;: Object&lt;/LI&gt;
&lt;/UL&gt;&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;geometry&lt;/SPAN&gt;: Object&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;infoTemplate&lt;/SPAN&gt;: &lt;SPAN style="color:#808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color:#808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;__proto__&lt;/SPAN&gt;: Object&lt;/LI&gt;
&lt;/UL&gt;&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;geometryType&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;"esriGeometryPoint"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;layerId&lt;/SPAN&gt;: &lt;SPAN style="color:#1C00CF;"&gt;43&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color:#881391;"&gt;layerName&lt;/SPAN&gt;: &lt;SPAN style="color:#C41A16;"&gt;""&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how to work round this - have I missed something here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identify-on-raster-layer/m-p/511533#M47653</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2021-12-11T22:23:18Z</dc:date>
    </item>
  </channel>
</rss>

