SetImageServiceInfo
Hi All
I am try to set a rendering rule for an image using the SetImageService activity, but for the life of me I cant work out the syntax.
The rule is as below
renderingRule={"rasterFunction":"Colormap","rasterFunctionArguments":{"colorRamp":"Aspect","Raster":{"rasterFunction":"Stretch","rasterFunctionArguments":{"StretchType":5,"Statistics":[],"DRA":true,"UseGamma":true,"Gamma":[1],"ComputeGamma":false},"variableName":"Raster","outputPixelType":"U8"}},"variableName":"Raster"}
Any help or pointers would be hugely appreciated!!
Cheers
0
-
Ok I'm almost there. I've got the image changing colour at least but its just apply a single colour at this stage. I am assuming that I need to apply some sort of range in the argument?
New ESRI.ArcGIS.Client.RenderingRule() With { .RasterFunctionName = "Colormap", .RasterFunctionArguments = New Dictionary(Of String, Object) From { { "colorRamp", "Aspect" },{ "rasterFunction", "Stretch" }, {"StretchType", 5}, {"Statistics",0},{"DRA", true}, {"UseGamma", true}, {"Gamma", 1}, {"ComputeGamma", false},{"outputPixelType","U8"},{"variableName","Raster"} }, .VariableName = "Raster" }0
Please sign in to leave a comment.
Comments
1 comment