<?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 legend request returns incorrect values for raster function from mosaic dataset ImageServer? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/legend-request-returns-incorrect-values-for-raster/m-p/1189546#M4205</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am writing some JavaScript for charting data represented by classified images in mosaic datasets available via ImageServers and am having trouble getting the definition of a rendering rule associated with the ImageServer as a raster function processing template to figure out the classification scheme used.&lt;/P&gt;&lt;P&gt;I can make legend requests, using the appropriate rendering rule, to get the labels but the values returned in association with those labels are all the same. For example (updated w/better examples on July 8):&lt;/P&gt;&lt;P&gt;1. &lt;A href="https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_dnp/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22dnp_gs%22&amp;amp;f=pjson" target="_blank"&gt;https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_dnp/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22dnp_gs%22&amp;amp;f=pjson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. &lt;A href="https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_ac/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22ac_ay%22&amp;amp;f=pjson" target="_blank" rel="noopener"&gt;https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_ac/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22ac_ay%22&amp;amp;f=pjson&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how/what I can specifically request to get a raster function's definition where those values are returned properly?&lt;/P&gt;&lt;P&gt;It should be stated that it's entirely possible my problem is that our production environment is using ArcGIS Server 10.4.1 and returning the same values in the legend request is a bug that has since been fixed. If that's the case, it would be good to know too.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;jtm&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 19:06:58 GMT</pubDate>
    <dc:creator>myESRIUName</dc:creator>
    <dc:date>2022-07-08T19:06:58Z</dc:date>
    <item>
      <title>legend request returns incorrect values for raster function from mosaic dataset ImageServer?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/legend-request-returns-incorrect-values-for-raster/m-p/1189546#M4205</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am writing some JavaScript for charting data represented by classified images in mosaic datasets available via ImageServers and am having trouble getting the definition of a rendering rule associated with the ImageServer as a raster function processing template to figure out the classification scheme used.&lt;/P&gt;&lt;P&gt;I can make legend requests, using the appropriate rendering rule, to get the labels but the values returned in association with those labels are all the same. For example (updated w/better examples on July 8):&lt;/P&gt;&lt;P&gt;1. &lt;A href="https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_dnp/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22dnp_gs%22&amp;amp;f=pjson" target="_blank"&gt;https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_dnp/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22dnp_gs%22&amp;amp;f=pjson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. &lt;A href="https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_ac/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22ac_ay%22&amp;amp;f=pjson" target="_blank" rel="noopener"&gt;https://agriculture.canada.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_ac/ImageServer/legend?bandIds=&amp;amp;renderingRule=%22rasterFunction%22%3A%22ac_ay%22&amp;amp;f=pjson&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how/what I can specifically request to get a raster function's definition where those values are returned properly?&lt;/P&gt;&lt;P&gt;It should be stated that it's entirely possible my problem is that our production environment is using ArcGIS Server 10.4.1 and returning the same values in the legend request is a bug that has since been fixed. If that's the case, it would be good to know too.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;jtm&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 19:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/legend-request-returns-incorrect-values-for-raster/m-p/1189546#M4205</guid>
      <dc:creator>myESRIUName</dc:creator>
      <dc:date>2022-07-08T19:06:58Z</dc:date>
    </item>
  </channel>
</rss>

