Rest API function for applying colorramp on image service

4038
2
05-06-2015 05:54 AM
nageshnangi1
New Contributor II

How to apply a colorramp rendering rule on image service ArcGIS Image Server​@. It is not documented properly in REST API raster function section.

I tried below syntax but it neither applied it on ExportImage call nor gave any error. Any clue will be very useful.

thank you!

{"rasterFunction":"ColorRamp", "rasterFunctionArguments":{

     {

  "type": "algorithmic",

  "fromColor": [115,76,0,255],

  "toColor": [255,25,86,255],

  "algorithm": "esriHSVAlgorithm"

}}}

2 Replies
JaiSiva1
New Contributor III

Hi Nagesh,

   In this example Shaded relief and slope | ArcGIS API for JavaScript , they have used color ramp for image service.

   Hope you would find this useful.

nageshnangi1
New Contributor II

Thanks Jai,

This, I have already seen but I am unsure whether its correct approach.

As mentioned in this help section Colormap function—Help | ArcGIS for Desktop , I was looking for some example with type 'ColorRamp'.

Infact at the end of section, it says that 'Since there is no specific color tied to each value, this will render your data as if you are using the stretched renderer'.

But in Shaded relief example, its a creating a pixel value assigned colormap range values. I am unsure whether to proceed with this approach.

Thanks anyway

0 Kudos