AnsweredAssumed Answered

Can I access a Raster Function's definition?

Question asked by myESRIUName on Nov 4, 2016
Latest reply on Nov 7, 2016 by myESRIUName

I have a number of image services with a number of raster functions associated with each. The raster functions are renderers that define different classification schemes to display the rasters with. To illustrate, if you add the following URL to the AGOL viewer: http://www.agr.gc.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_ac/ImageServer, you can see in the Image Display UI a number of renderers are provided to use on that data. The specifics of how the renderers should be properly applied to which data, to be sure it properly reflects the information as desired is irrelevant to my question.

 

What I'd like to know, using the above as an example, is whether I can find out what defines the raster function "ac_01" from the service itself. That is, is there any way that I can query that service (with a REST request of some kind or another) where I can get the definition of the "ac_01" renderer, for example, and learn, say, that it is made up of 16 classes and the second class specifies these RGB values be used to display cells of that range of values and that that range of values (for that particular class) shows data falling between 0 and 0.5?

 

What I'm looking for is something along the lines of the response I get to this URL: http://www.agr.gc.ca/atlas/rest/services/app_agclimate_agclimat/agclimate_ac/ImageServer/legend?renderingRule={rasterFun… but that would give me the RGB values as well? Or, if that's not possible, is there some way I can convert the long imageData string in that response to find out the RGB values are or is that long string pointing to a file of something somewhere and not some kind of obfuscation for the RGB values?

 

Any ideas anyone can provide would be appreciated.

 

Cheers,

jtm

Outcomes