<?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 Raster Function Rendering Rules to apply a color ramp? in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/raster-function-rendering-rules-to-apply-a-color/m-p/859033#M144</link>
    <description>&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0px 0px 0.25em;"&gt;Does anyone have a working example using ESRI Leaflet to assign a color ramp to a DEM hosted as an ArcGIS REST ImageServer?&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;I've been using this &lt;A href="https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm#ESRI_SECTION1_703333A4962841F8AAEAA54076B73767" target="_blank" rel="nofollow noopener noreferrer"&gt;documentation from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ESRI&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and have managed to get a hillshade example working:&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-none" tabindex="0"&gt;&lt;CODE&gt;///Hillshade DEM
var renderingRule = {
 "rasterFunction":"Hillshade",
 "rasterFunctionArguments": {
 "Azimuth":315,
 "Altitude":45,
 "ZFactor":1
 },"variableName":"DEM"
};

var dem = L.esri.imageMapLayer({
 url: 'https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer',
 renderingRule: renderingRule
});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;But have had no luck applying a color ramp:&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-none" tabindex="0"&gt;&lt;CODE&gt;var renderingRuleTwo = {
 "rasterFunction" : "Colormap",
 "rasterFunctionArguments" : {
 "ColorrampName" : "Blue Bright"
 },
 "variableName" : "Raster"
};

var demTwo = L.esri.imageMapLayer({
 url: 'https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer',
 renderingRule: renderingRuleTwo
});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;Thanks in advance to anyone who can provide some insight!&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;Edit: Formatting&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 12:54:26 GMT</pubDate>
    <dc:creator>AustinBristow1</dc:creator>
    <dc:date>2023-08-28T12:54:26Z</dc:date>
    <item>
      <title>Raster Function Rendering Rules to apply a color ramp?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/raster-function-rendering-rules-to-apply-a-color/m-p/859033#M144</link>
      <description>&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0px 0px 0.25em;"&gt;Does anyone have a working example using ESRI Leaflet to assign a color ramp to a DEM hosted as an ArcGIS REST ImageServer?&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;I've been using this &lt;A href="https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm#ESRI_SECTION1_703333A4962841F8AAEAA54076B73767" target="_blank" rel="nofollow noopener noreferrer"&gt;documentation from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ESRI&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and have managed to get a hillshade example working:&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-none" tabindex="0"&gt;&lt;CODE&gt;///Hillshade DEM
var renderingRule = {
 "rasterFunction":"Hillshade",
 "rasterFunctionArguments": {
 "Azimuth":315,
 "Altitude":45,
 "ZFactor":1
 },"variableName":"DEM"
};

var dem = L.esri.imageMapLayer({
 url: 'https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer',
 renderingRule: renderingRule
});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;But have had no luck applying a color ramp:&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-none" tabindex="0"&gt;&lt;CODE&gt;var renderingRuleTwo = {
 "rasterFunction" : "Colormap",
 "rasterFunctionArguments" : {
 "ColorrampName" : "Blue Bright"
 },
 "variableName" : "Raster"
};

var demTwo = L.esri.imageMapLayer({
 url: 'https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer',
 renderingRule: renderingRuleTwo
});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;Thanks in advance to anyone who can provide some insight!&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="color: #1a1a1b; background-color: #ffffff; border: 0px; font-size: 14px; padding: 0.25em 0px;"&gt;Edit: Formatting&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/raster-function-rendering-rules-to-apply-a-color/m-p/859033#M144</guid>
      <dc:creator>AustinBristow1</dc:creator>
      <dc:date>2023-08-28T12:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Function Rendering Rules to apply a color ramp?</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/raster-function-rendering-rules-to-apply-a-color/m-p/859034#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in esri leaflet we're not doing anything special. we just pass through whatever JSON you supply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;A _jive_internal="true" href="https://community.esri.com/message/65042"&gt;this thread&lt;/A&gt; isn't helpful,&amp;nbsp;I'd recommend&amp;nbsp;figuring out the&amp;nbsp;appropriate syntax for your raster function directly at the REST endpoint and asking for help from image service experts if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer/exportImage" title="https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer/exportImage"&gt;https://gis.arkansas.gov/arcgis/rest/services/ImageServices/DEM_1M_2018/ImageServer/exportImage&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/raster-function-rendering-rules-to-apply-a-color/m-p/859034#M145</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2019-03-06T18:59:45Z</dc:date>
    </item>
  </channel>
</rss>

